Commit Graph
62 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 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
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
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 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
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
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 675c05f5de Bug 1218597 - Limit the number of stack frames serialized in core dumps; r=froydnj 2015-10-27 14:13:39 -07: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 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
Nick Fitzgerald c7c6bfec1e Bug 1201542 - Implement allocationSite breakdown for CensusTreeNode. r=jsantell 2015-10-21 08:25:00 -04:00
J. Ryan Stinnett 54fc9e8b77 Bug 1203159 - Clean up various tests after DevTools resource move. r=me 2015-10-21 14:18:29 -05:00
J. Ryan Stinnett 687866dde2 Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
Wes Kocher 5bb7361afb Backed out changeset 3a73b2d41ed5 (bug 1201542) for test_census-view-01.html failures 2015-10-20 12:40:13 -07:00
Nick Fitzgerald 9815337bfc Bug 1201542 - Implement allocationSite breakdown for CensusTreeNode; r=jsantell 2015-10-20 10:21:33 -07:00
Nick Fitzgerald e2368529d7 Bug 1214867 - Add HeapSnapshot.prototype.creationTime; r=bholley 2015-10-20 10:55:49 +05:30
Nick Fitzgerald 071b2f41b8 Bug 1214070 - Add support for diffing census reports to HeapAnalysesWorker; r=jsantell 2015-10-15 08:23:00 +02:00
Jordan Santell 4f4df30aa5 Bug 1214231 - Provide an option to generate census tree nodes in a worker when taking a census. r=fitzgen 2015-10-13 16:41:10 -07:00
Nick Fitzgerald eba3a93688 Bug 1201621 - Add support for allocation stack breakdowns to the heap analysis worker; r=jsantell 2015-10-12 13:29:49 -07:00
Carsten "Tomcat" Book 036e6d2fa3 Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book 12369728f5 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo 474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00