Commit Graph
84 Commits
Author SHA1 Message Date
Nick Fitzgerald ecb4b4a599 Bug 1220336 - Give HeapSnapshot.creationTime tests more slack for WinXP. r=jdescottes
These two tests have been intermittently failing on WinXP because the
`Date.now()` timers only have a granularity of +/- 15 milliseconds on that
platform. This commit ensures that we have a range of at least 30 milliseconds
before and after taking the snapshot to ensure that the snapshot's timestamp
will fit within the range.
2016-01-19 13:51:00 +01:00
Julian Descottes 5622f85112 Bug 1215955 - Add deleteSnapshot to HeapAnalysisWorker. r=fitzgen 2016-01-12 10:41:17 +01:00
Luke Wagner c9adf369ac Bug 1239601 - improve the UniquePtr situation (r=jorendorff) 2016-01-15 18:26:06 -06:00
Wes Kocher deead778cb Backed out changeset c457397a08bb (bug 1215955) for being a possible cause of frequent devtools failures in browser_profiler_tree-abstract-02.js a=backout 2016-01-15 10:43:01 -08:00
Julian Descottes d40259b5e4 Bug 1215955 - Add deleteSnapshot to HeapAnalysisWorker. r=fitzgen 2016-01-12 10:41:17 +01:00
Julian Descottes 24b865446e Bug 1238639 - HeapAnalysesWorker getCreationTime throws when given non-existant path;r=fitzgen 2016-01-12 11:13:54 +01:00
Nick Fitzgerald d144ff2205 Bug 1239154 - Add default bug component to memory tool related directories; r=jsantell 2016-01-13 12:27:30 -08:00
Nick Fitzgerald cfd8b71c65 Bug 1236673 - Add a method for getting the canonical node along a path; r=jsantell 2016-01-06 13:57:12 -08:00
Nick Fitzgerald 57884de0f1 Bug 1235883 - Add support for inserting lazily loaded children into a DominatorTreeNode tree; r=jsantell
This commit adds the `DominatorTreeNode.insert` method to insert new
DominatorTreeNode children that have just been loaded from the
HeapAnalysesWorker into an existing partially complete DominatorTreeNode
tree. This is done in a persistent and immutable fashion so that we can use
=== to differentiate different generations of `DominatorTreeNode` trees but
still share the vast majority of the underlying structure.

As infrastructure for the insertion, HeapAnalysesWorker's
`getImmediatelyDominated` response also returns the path from the root to the
node whose immediately dominated children are being fetched. This makes it much
easier to know where to insert the newly loaded children.
2016-01-06 13:57:12 -08:00
Ehsan Akhgari 940aa33681 Bug 579517 follow-up: Remove NSPR types that crept in 2015-12-30 22:52:50 -05:00
Jeff Walden 4f31020ada Bug 1235615 - Split JS::CompartmentOptions into JS::CompartmentCreationOptions that are immutable characteristics of a compartment, and JS::CompartmentBehaviors that may be changed after the compartment's been created. r=terrence 2015-12-28 16:15:52 -06:00
Nick Fitzgerald 0a68f9ead3 Bug 1232390 - Use HeapSnapshot.describeNode to generate labels for nodes; r=jsantell 2015-12-18 12:05:14 -08:00
Nick Fitzgerald deecaa1ebf Bug 1231883 - Implement HeapSnapshot.describeNode; r=mrbkap
This commit implements the HeapSnapshot.describeNode method which allows chrome
JS code to request a description of a given node as specified by our existing
"breakdown" language. This description can be used to generate a human-readable
label for the node.
2015-12-18 12:05:14 -08:00
Nick Fitzgerald f27c858435 Bug 1231763 - Extract breakdown parsing from JS::ubi::Census. r=jimb 2015-12-16 09:19:00 +01:00
Patrick Brosset a55c60aca1 Bug 1229859 - Massively reduce the number of eslint errors in devtools by ignoring lib files, adding missing .eslintrc files and making some rules be warnings; r=Mossop 2015-12-10 15:46:32 -05:00
Nick Fitzgerald 41f4dd8d45 Bug 1229960 - Add support for computing and traversing dominator trees to HeapAnalysisWorker; r=jsantell
This commit defines `DominatorTreeNode`, a JS class representing a node in a
heap snapshot's dominator tree. Three heap analysis client/worker
request/responses request and create these `DominatorTreeNode`s. Unlike
censuses, dominator trees are too big to practically mirror in memory as JS
object structures. Instead, we have one request to get a partial/shallow
representation of the tree starting from the root, and another to get subsequent
children and siblings in the tree. This allows for incremental, lazy, and
bounded mirroring of the dominator tree as `DominatorTreeNode`s.
2015-12-03 09:15:13 -08:00
Nick Fitzgerald 11e4d4d183 Bug 1226440 - Expose a method to get a node's immediate dominator; r=bz,sfink
This commit adds the `getImmediateDominator` method to `DominatorTree` which
returns the id of the immediate dominator of the node associated with the given
id. This enables walking the dominator tree from leaves up parents all the way
to the root of the tree.
2015-11-30 17:38:06 -08:00
Nick Fitzgerald e7f715f1d0 Bug 1226416 - Expose a method to get a node's set of immediately dominated nodes in the dominator tree; r=bz,sfink
This adds the `getImmediatelyDominated` method to `DominatorTree` which takes a
node id and returns the set of each node ids for every node that is immediately
dominated by the node with the given id. The results are sorted by greatest to
least retained size. In conjunction with the `root` attribute, this can be used
to traverse the whole dominator tree.
2015-11-30 17:38:06 -08:00
Nick Fitzgerald 79d5400df7 Bug 1226217 - Use less verbose cycle collection macros for mozilla::devtools::HeapSnapshot; r=bz 2015-11-19 07:45:00 +01:00
Jan Varga 86cf1daebe Bug 961049 - Part 3: Move PersistenceType serializer from indexedDB to quota module; r=baku 2015-11-22 10:43:34 +01:00
Nick Fitzgerald 956e2ac6a1 Bug 1226225 - Allow backups of size zero in ZeroCopyNSIOutputStream::BackUp; r=jimb 2015-11-20 11:36:10 -08:00
Nick Fitzgerald 526bf1ab61 Bug 1226176 - Compute retained sizes in dominator trees and expose them to JavaScript; r=bz,sfink 2015-11-20 09:08:15 -08:00
Nick Fitzgerald 2e2a6bbc14 Bug 1226024 - Expose the root of the dominator tree to JavaScript; r=bz,sfink 2015-11-19 08:10:13 -08:00
Nick Fitzgerald fe902708b3 Bug 1225588 - Expose DominatorTree to JavaScript; r=sfink,bz
This commit adds the DominatorTree.webidl interface, which is only exposed to
chrome JS. The interface is implemented by mozilla::devtools::DominatorTree,
which is a thin wrapper around JS::ubi::DominatorTree. This does not expose any
methods on the DominatorTree interface, those will come as follow up changesets.
2015-11-18 14:12:23 -08:00
Tom Tromey 38351dc381 Bug 1223954 - don't use implicitJSContext for readHeapSnapshot and saveHeapSnapshot; r=bz 2015-11-12 08:51:00 +01:00
Phil Ringnalda 017ebdd27f Merge m-i to m-c, a=merge 2015-11-14 13:22:10 -08:00
Nick Fitzgerald 6e8a59c912 Bug 960780 - Add support for diffing heap snapshots to the memory tool frontend; r=jsantell,ntim 2015-11-13 11:20:45 -08:00
Nick Fitzgerald 925576db2a Bug 1149285 - Abstract out edge matching with a custom gmock matcher; r=vporof 2015-11-05 13:51:00 +01:00
Nick Fitzgerald 4308493545 Bug 1149245 - Make DeserializedEdgeRange re-use its referents edge vector; r=vporof 2015-11-04 12:21:00 +01:00
Nick Fitzgerald 793a519f59 Bug 1160379 - Annotate relevant tests for --tag devtools-memory. r=jsantell 2015-11-05 10:53:00 +01:00
Carsten "Tomcat" Book 2c8cf80144 merge mozilla-inbound to mozilla-central a=merge 2015-11-05 11:58:55 +01:00
Nick Fitzgerald 88f4e664c7 Bug 1221360 - Add a filter transform to CensusTreeNode; r=jsantell 2015-11-04 16:12:31 -08:00
Jason Orendorff e51d446148 Bug 1216623 - Part 1: Rename some loop variables to avoid conflicts with ES6 scoping rules. r=fitzgen, r=ttaubert, r=MattN, r=gps. 2015-10-26 16:33:59 -05:00
Nick Fitzgerald 7e944fc529 Bug 1221218 - Use by-filename breakdown in the memory tool; r=jsantell
This commit adds support for traversing by: "filename" edges in census
breakdowns and reports and makes the default coarse-type breakdown use a
filename sub-breakdown for scripts.
2015-11-04 05:49:34 -08:00
Nick Fitzgerald 65a4685cc8 Bug 1220918 - Serialize and deseriliaze JS::ubi::Node's script filenames in heap snapshots; r=sfink 2015-11-04 05:49:33 -08:00
Jordan Santell 861d7482b6 Bug 1217243 - Display snapshot aggregate values and timestamp in the snapshot list view. r=fitzgen 2015-10-29 01:17:09 -07:00
Nick Fitzgerald d36eb54a78 Bug 1219066 - Make sure to traverse and unlink HeapSnapshot::mParent in cycle collection; r=mccr8 2015-10-28 22:46:25 -07:00
Carsten "Tomcat" Book 958995e6a3 Backed out changeset 2e4f2de05673 (bug 1219066) 2015-10-28 13:09:40 +01:00
Nick Fitzgerald 7bfa8ce35e Bug 1219066 - Make sure to traverse and unlink HeapSnapshot::mParent in cycle collection; r=mccr8 2015-10-28 02:11:06 -07:00
Nick Fitzgerald 675c05f5de Bug 1218597 - Limit the number of stack frames serialized in core dumps; r=froydnj 2015-10-27 14:13:39 -07:00
Jordan Santell fa03b16c29 Bug 960776 2015-10-26 10:13:49 -07:00
Sebastian Hengst 03335e8f37 Backed out changeset 335ea7a95492 (bug 960776) for XPCShell failures. r=backout 2015-10-24 10:43:41 +02:00
Jordan Santell f53ca49076 Bug 960776 - Render a tree widget to display heap data. r=fitzgen 2015-10-23 15:59:11 -07:00
Nick Fitzgerald cab8b6acd2 Bug 1217495 - HeapAnalyses{Client,Worker} should support requests for inverted trees; r=jsantell 2015-10-22 13:43:30 -07:00
Nick Fitzgerald 135ed8aed3 Bug 1217248 - Add the ability to invert CensusTreeNode trees; r=jsantell 2015-10-22 09:12:36 -07:00
Nick Fitzgerald 05ac0c3c5c Bug 1217158 - Aggregate total counts/bytes in CensusTreeNode; r=jsantell 2015-10-22 09:12:36 -07:00
Nick Fitzgerald ad2a64d205 Bug 1201542 - Implement allocationSite breakdown for CensusTreeNode; r=jsantell 2015-10-22 09:12:36 -07:00
Nigel Babu fb035d5801 Backed out changeset 3e148d8f5e05 (bug 1201542) for XPCShell bustage 2015-10-22 09:57:08 +05:30
Nigel Babu d9ad4abc4c Backed out changeset be72055dc7ac (bug 1217158) for XPCShell bustage 2015-10-22 09:56:58 +05:30
Nick Fitzgerald ee02cb7ebb Bug 1217158 - Aggregate total counts/bytes in CensusTreeNode; r=jsantell 2015-10-21 12:53:00 -04:00