Commit Graph

45 Commits

Author SHA1 Message Date
Greg Tatum
25456244d3 Bug 1381178 - Remove DEVTOOLS_MEMORY_ telemetry probes; r=jimb
MozReview-Commit-ID: Ap7aMdlvsub

--HG--
extra : rebase_source : d35c07e60d34c8f6c0bb2582b42c5c1a185b9fdc
2017-09-15 10:20:18 -05:00
Sebastian Hengst
cb76f56d60 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen
d7ea1c1605 Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Tim Nguyen
79b4bca632 Bug 1330074 - Enable no-self-assign, no-useless-call and no-useless-return in devtools/. r=jryans
MozReview-Commit-ID: A345G1QOOpm

--HG--
extra : rebase_source : c10d47aaf56a8227d4642a03fc2b10f3a459ec05
2017-01-10 22:14:03 +00:00
tdraebing
523c563b92 Bug 1251728 - Make devtools/client/memory/ eslint clean. r=ntim
MozReview-Commit-ID: KlM4HF81imy
2016-12-21 15:21:24 +01:00
J. Ryan Stinnett
30b2b7ce44 Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Tom Tromey
08f3ad3f7b Bug 1265876 - don't directly use Timer.jsm or timers.js in devtools; r=ochameau
MozReview-Commit-ID: HzbnNvTc5db
2016-05-04 08:02:03 -06:00
Carsten "Tomcat" Book
bba206d411 Backed out changeset 797e8190073f (bug 1265876) for memory leaks in browser_markup_mutation_02.js 2016-04-28 08:13:42 +02:00
Tom Tromey
ed07ccffa3 Bug 1265876 - don't directly use Timer.jsm or timers.js in devtools; r=ochameau
MozReview-Commit-ID: HzbnNvTc5db
2016-04-21 11:20:14 -06:00
Greg Tatum
49395e2d34 Bug 1242628 - Add ability to remove a single snapshot from the list. r=fitzgen
--HG--
extra : rebase_source : 59021ac5bb294442180a064eaa4ad0ee7a65a3ec
2016-04-15 09:36:00 +02:00
Nick Fitzgerald
43931f7d1c Bug 1249788 - Follow up: Remove debug logs and TODO comments that should not have landed. r=jimb 2016-04-12 14:34:00 -04:00
Nick Fitzgerald
cd2c23a435 Bug 1249788 - Implement the census individuals view; r=jsantell
This adds the INDIVIDUALS view state to the memory panel, renames "dominator
tree display" to "label display", and adds a view for listing the individual
nodes in a census group and inspecting each nodes' retaining paths.

--HG--
rename : devtools/client/memory/actions/dominator-tree-display.js => devtools/client/memory/actions/label-display.js
rename : devtools/client/memory/reducers/dominator-tree-display.js => devtools/client/memory/reducers/label-display.js
2016-04-11 18:04:31 -07:00
Nick Fitzgerald
6a41a35347 Bug 1262480 - Clean up getCurrentCensusTaker style; r=jimb 2016-04-08 09:36:34 -07:00
Nick Fitzgerald
2db83d34dd Bug 1237054 - Part 2: Get the devtools/client/memory/test/unit/* tests passing without DevToolsUtils.assert failures; r=jryans 2016-04-05 19:21:00 +02:00
Greg Tatum
bffbcbb869 Bug 1238695 - Render census data as a treemap. r=fitzgen, r=vporof 2016-04-01 10:56:00 -04:00
Julian Descottes
f879f61a4b Bug 1255804 - fix dominator view infinite loading when importing snapshot;r=fitzgen
Extracted new snapshot action to compute snapshot data: take census + compute
dominator-tree if the current view is the dominator-view (logic extracted from
takeSnapshotAndCensus action). This action is reused when importing a snpashot.

Added a new unit test to test the import from the dominator tree view.
Modified exising import unit test to check snapshot.census.display instead of
snapshot.display (which was undefined).

MozReview-Commit-ID: 8JN1arfaI1H

--HG--
extra : rebase_source : 8d0a57ff39ac2a8cf1be073e0cd2adb529e25b68
2016-03-21 17:14:16 +01:00
Julian Descottes
523168a54c Bug 1253881 - memory profiler: toggle diffing when clearing snapshots;r=fitzgen
When clearing all snapshots, if currently displaying a diff, dispatch the
diffing.toggleDiffing action.

MozReview-Commit-ID: 1DyPZ7tHC1X

--HG--
extra : rebase_source : 595d182023567c01fc14b7fb25fc65406296466d
2016-03-07 21:23:32 +01:00
Nick Fitzgerald
a9e7879204 Bug 1249779 - Remove the "invert tree" checkbox and make inverting a property of the "group by" selection; r=jsantell
Effectively, this moves `inverted` from a global and per-census state, to a
per-`breakdownModel` state. Additionally, a `breakdownModel` is not just a
breakdown spec anymore, but also some extra associated metadata. As such, it has
been split in two and renamed to "censusDisplayModel" and
"dominatorTreeDisplayModel".

--HG--
rename : devtools/client/memory/reducers/breakdown.js => devtools/client/memory/reducers/census-display.js
rename : devtools/client/memory/reducers/dominatorTreeBreakdown.js => devtools/client/memory/reducers/dominator-tree-display.js
rename : devtools/client/memory/test/browser/browser_memory_allocationStackBreakdown_01.js => devtools/client/memory/test/browser/browser_memory_allocationStackDisplay_01.js
rename : devtools/client/memory/test/browser/browser_memory_breakdowns_01.js => devtools/client/memory/test/browser/browser_memory_displays_01.js
rename : devtools/client/memory/test/unit/test_action-set-breakdown-and-refresh-02.js => devtools/client/memory/test/unit/test_action-set-display-and-refresh-02.js
2016-03-01 16:20:45 -08:00
Nick Fitzgerald
a954e27a9e Bug 1149385 - Render retaining paths in the dominators view; r=jsantell
This commit extends the devtools' memory panel's dominators view with a sidebar
that displays the 5 shortest retaining paths from the GC roots for the selected
node in the dominator tree.
2016-02-23 15:38:29 -08:00
Nick Fitzgerald
b8817f5424 Bug 1246017 - Create the parent map in the HeapAnalysesWorker; r=jimb 2016-02-05 15:11:48 -08:00
Carsten "Tomcat" Book
045e9f2c83 Backed out changeset 92889fed3b3b (bug 1246017) for xpcshell bustage 2016-02-05 14:06:27 +01:00
Nick Fitzgerald
34215b63aa Bug 1246017 - Create the parent map in the HeapAnalysesWorker; r=jimb 2016-02-04 18:05:00 +01:00
Nick Fitzgerald
0d656a45b0 Bug 1221619 - Add telemetry to memory tool. r=jsantell, data-review=bsmedberg
--HG--
extra : rebase_source : 60ac72c8e18871226c60cbe984b15bed21042ad4
2016-02-03 15:17:00 +01:00
Nick Fitzgerald
e9084b82df Bug 1245302 - Wait for the HeapAnalysesWorker to reply before considering deleting a snapshot done; r=jsantell 2016-02-02 15:09:00 +01:00
Julian Descottes
88ef962b60 Bug 1215955 - Add clear snapshots button to devtools memory tool. r=fitzgen 2016-01-12 19:14:15 +01:00
Wes Kocher
137b0dc6d1 Backed out changeset c457397a08bb (bug 1215955) for being a possible cause of frequent devtools failures in browser_profiler_tree-abstract-02.js a=backout
--HG--
extra : commitid : 9hiF1ztDIiJ
extra : histedit_source : 6388bc5df724f62b90c3309794bde9df82fa5631%2C131cc268c81bccca87b5dfc6ce58ae21230768cf
2016-01-15 10:43:01 -08:00
Julian Descottes
bd312166c6 Bug 1215955 - Add clear snapshots button to devtools memory tool. r=fitzgen 2016-01-12 19:14:15 +01:00
Nick Fitzgerald
46ec4d3cc4 Bug 1229229 - Display dominator trees in the memory tool's UI; r=jsantell
This patch overhauls the memory tool's frontend from being in a state of viewing
a snapshot's census (the implicit default) or viewing a census diff (a special
cased kind of thing) to one of three recognized view states: (1) census, (2)
diffing, or (3) dominator tree. The logic surrounding our current view is more
explicit now. View option (3) is the new one, whose introduction required those
clean ups.

Dominator trees are too large to render in full, all at once. Instead, we
eagerly load and render a few levels deep and then incrementally fetch further
subtrees as their parents are expanded in the UI. This means that we get new
Tree component instances across incremental fetches. Before this commit, the
Tree component stored a bunch of state internally (in this.state rather than
this.props) and we would lose focus and expansion state across incremental
fetches. This internal state has been pulled out and made as explicit props,
which are now managed by actions and reducers just like the rest of the state.

--HG--
rename : devtools/client/memory/components/tree-item.js => devtools/client/memory/components/census-tree-item.js
2016-01-13 12:27:30 -08:00
Nick Fitzgerald
dc7807bb13 Bug 1235457 - Create ThreadSafeDevToolsUtils for the utilities that can be used in workers; r=jsantell
This commit adds the ThreadSafeDevToolsUtils module for utilities that are
guaranteed to work off the main thread. It also makes DevToolsUtils re-export
the thread-safe utilities. This is similar to ChromeUtils and
ThreadSafeChromeUtils webidl interfaces.
2015-12-30 09:37:01 -08:00
Nick Fitzgerald
df26d887c6 Bug 960780 - Add support for diffing heap snapshots to the memory tool frontend; r=jsantell,ntim 2015-11-13 11:20:45 -08:00
Jordan Santell
89961bc4bb Bug 1215953 - Add feature for importing heap snapshots into the memory
tool. r=fitzgen,ntim
2015-11-11 16:05:46 -08:00
Jordan Santell
cb4eb14f47 Bug 1215954 - Add feature to save a heap snapshot from memory tool to
disk. r=fitzgen,vp
2015-11-10 11:53:55 -08:00
Nick Fitzgerald
7d323eb6c7 Bug 1221673 - Add support for filtering censuses to memory tool's frontend; r=jsantell,vporof 2015-11-04 16:12:31 -08:00
Jordan Santell
9fc629abb9 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
5abfa7449e Bug 1218592 - Add more robust error handling and reporting to the memory tool's actions; r=jsantell 2015-10-27 13:24:55 -07:00
Nick Fitzgerald
307f72d779 Bug 1217500 - Add UI for inverting display tree in memory tool; r=jsantell 2015-10-27 09:11:05 -07:00
Phil Ringnalda
df78b897da Back out 2 changesets (bug 1217500, bug 1218560) for devtools leaks
Backed out changeset 15acea2927e2 (bug 1218560)
Backed out changeset e3b623fd16bf (bug 1217500)
2015-10-26 18:28:24 -07:00
Nick Fitzgerald
fd979a5d49 Bug 1217500 - Add UI for inverting display tree in memory tool; r=jsantell 2015-10-26 14:58:03 -07:00
Nick Fitzgerald
554bd61388 Bug 1214066 - Add the ability to toggle allocation stack recording; r=jsantell 2015-10-23 15:18:55 -07:00
Jordan Santell
c6ee0927bd Bug 1215397 - Add state and UI for breakdowns in memory tool. r=fitzgen 2015-10-19 13:57:33 -07:00
Jordan Santell
c84dda70dd Bug 1214872 - Set up state changes in the memory tool. r=fitzgen 2015-10-16 15:16:55 -07:00
Jordan Santell
c9656c9187 Bug 1213137 - Initial react app for memory tool with its snapshot list view. r=jlong 2015-10-14 11:31:59 -07:00
Jordan Santell
a0f9240c5f Bug 1201949 - Initial redux-style controllers for front end memory tool heap snapshot. r=jlongster 2015-09-25 20:09:58 -07:00
Carsten "Tomcat" Book
5d52d11415 Backed out 1 changesets (bug 1201949) for bc7 test failures
Backed out changeset f03e855428e7 (bug 1201949)
2015-09-25 11:03:26 +02:00
Jordan Santell
2d116e6da2 Bug 1201949 - Initial redux-style controllers for front end memory tool heap snapshot. r=jlongster 2015-09-24 15:41:38 -07:00