-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This refactors some of the internal code and makes a variety of UI tweaks: * Tabs now use Bootstrap (added a dependency on popper.js) * The layout has been condensed * A new "Meta" tab shows metadata that is not relevant for every view * Heap profiling tabs are combined into a single dropdown * Tabs appear even if the underlying data is not available, with an explanation how to get the data (some of these explanations need work) * Tabs can have documentation associated with them; so far this exists partially for the "Heap" tab * When using -hi profiling, the main heap profile charts show the info table name (if available) in addition to the pointer * Ticky data is displayed in a separate tab (if available), alongside the other tabs, rather than being a separate mode Unrelated, CI uploads site artefacts, so that we can review them manually.
- Loading branch information
1 parent
59413a0
commit 2b84572
Showing
25 changed files
with
489 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<dl> | ||
<dt style="color: red">Heap Size</dt> | ||
<dd>Total size of <emph>megablocks</emph> allocated by the RTS</dd> | ||
<dt style="color: blue">Blocks Size</dt> | ||
<dd>Total size of <emph>blocks</emph> allocated by the RTS</dd> | ||
<dt style="color: green">Live bytes</dt> | ||
<dd>Total size of objects live on the heap (should match top of area pane)</dd> | ||
</dl> | ||
|
||
<p>Process memory usage (as reported by the OS) should correspond roughly to the <span style="color: red">heap size</span>, | ||
except for data allocated through the FFI (and the RTS also calls <tt>malloc()</tt> itself in a few places). | ||
</p> | ||
|
||
<p> | ||
When heap profiling is enabled, <span style="color: blue">blocks | ||
size</span> and <span style="color: green">live bytes</span> | ||
will typically differ by the size of the nursery. | ||
For understanding the relationship between <span style="color: blue">blocks | ||
size</span> and <span style="color: green">live bytes</span>, | ||
this <a href="https://www.well-typed.com/blog/2021/03/memory-return/">blog | ||
post</a> contains more information.</p> | ||
|
||
<p> | ||
When heap profiling is not enabled, <span style="color: green">live bytes</span> will be updated only on a major GC, but <span style="color: red">heap size</span> and <span style="color: blue">blocks size</span> are updated more frequently. (Enabling heap profiling causes more frequent major GCs to collect heap samples.) | ||
</p> | ||
|
||
<p> | ||
This view can also be useful in identifying | ||
fragmentation. A very badly fragmented heap will have low <span style="color: green">live bytes</span> but | ||
much higher <span style="color: blue">blocks size</span>. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
The cost centres view is available only when executing the program with <tt>+RTS -hc</tt>. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
No detailed data to display. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<p> | ||
This eventlog was generated without heap profiling. | ||
</p> | ||
|
||
<p> | ||
To create a heap profile, you need to run the program with one of the <tt>+RTS | ||
-h...</tt> options. The <tt>-hT</tt> (closure type) and <tt>-hi</tt> (info | ||
table) heap profiling options are available for all programs. If you compile | ||
with profiling enabled, more options are available. | ||
</p> | ||
|
||
<p> | ||
See the <a href="https://downloads.haskell.org/ghc/latest/docs/users_guide/profiling.html#profiling-memory-usage">GHC user's guide on profiling memory usage</a> for more information. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
No ticky data to display. | ||
</p> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,5 @@ | ||
function changeTab(tabName,elmnt) { | ||
var i, tabviz, tablinks; | ||
|
||
// Hide all elements with class="tabviz" by default */ | ||
tabviz = document.getElementsByClassName("tabviz"); | ||
for (i = 0; i < tabviz.length; i++) { | ||
tabviz[i].style.display = "none"; | ||
} | ||
|
||
// Remove the background color of all tablinks/buttons | ||
tablinks = document.getElementsByClassName("tablink"); | ||
for (i = 0; i < tablinks.length; i++) { | ||
tablinks[i].classList.remove('button-outline'); | ||
} | ||
|
||
// Show the specific tab content | ||
document.getElementById(tabName).style.display = "block"; | ||
|
||
// Add the specific color to the button used to open the tab content | ||
elmnt.classList.add('button-outline'); | ||
$.sparkline_display_visible() | ||
|
||
} | ||
|
||
// Get the element with id="defaultOpen" and click on it | ||
document.getElementById("defaultOpen").click(); | ||
$(document).ready(function () { | ||
$("#closures-tab").on("shown.bs.tab", function (e) { | ||
$.sparkline_display_visible(); | ||
}); | ||
}); |
Oops, something went wrong.