Commit Graph
56 Commits
Author SHA1 Message Date
tdraebing 860f51f12d Bug 1251728 - Make devtools/client/memory/ eslint clean. r=ntim
MozReview-Commit-ID: KlM4HF81imy
2016-12-21 15:21:24 +01:00
Greg Tatum 8936953f55 Bug 1312236 - Fix Memory tool for React 15 update r=jsnajdr
MozReview-Commit-ID: 97VoPl6tXUy
2016-11-28 14:38:00 +01:00
Mark Banner 233309fbe2 Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop
MozReview-Commit-ID: JrbFxQ5rj6I
2016-10-18 08:38:10 +01:00
Nick Fitzgerald 2fd52235eb Bug 1292197, Bug 1289087, Bug 1283703, Bug 1283702, Bug 1283701, Bug 1283700, Bug 1283699 - Add requestLongerTimeout for slow memory tests; r=jimb
Pretty much all of the browser mochitests for the memory panel have very
infrequent (about once a month) timeouts. In every case, the test has not hung
and just sat there, but is still actively doing work and just loses the race
against the timeout timer by fractions of a second. Ideally, we would speed up
the tests, but given that we already use small (in terms of heap size) test
cases and do as many analyses as we can in parallel, I think the best we can do
is increase the timeout threshold for these problematic tests.
2016-08-10 17:05:41 -07:00
Steve Chung 2419c9586a Bug 1253330 - Fix heap-tree-item-field heap-tree-item-name inline style (margin-left) in RTL. r=ntim
MozReview-Commit-ID: Irz2x4P7hx4
2016-08-03 14:24:19 +08:00
Nick Fitzgerald 29461839ae Bug 1261869 - Fix leaks in devtools; r=ejpbruel
There are two leaks addressed in this commit:

1. The thread actor's `_debuggerSourcesSeen` set was never cleared. This set
exists only as a performance optimization to speed up `_addSource` in cases
where we've already added the source. Unfortunately, this set wasn't getting
cleared when we cleared debuggees out and it ended up keeping the
`Debugger.Source`, its referent, and transitively its referent's global alive. I
figured it was simpler to make it a `WeakSet` than to add it as a special case
in `ThreadActor.prototype._clearDebuggees` and manage the lifetimes by hand. I
think this fits well with its intended use as an ephemeral performance
optimization.

2. Due to a logic error, we were not clearing debuggees in the memory actor's
`Debugger` instance on navigations. This isn't really a "proper" leak, in that
if you forced a GC, the old debuggees would go away as `Debugger` holds them
weakly, however if there was no GC between navigations, then you could still see
the old windows (and everything they "retained") as roots in the snapshot. This
issue is straightforward to fix once identified: ensure that `_clearDebuggees`
is actually called on navigation.

Finally, this commit adds a test that we don't leak Window objects when devtools
are open and we keep refreshing a tab. When it fails, it prints out the leaking
window's retaining paths.
2016-07-06 08:37:57 -07:00
J. Ryan Stinnett 530b903fcf 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
Greg Tatum 35cfb425c6 Bug 1263397 - The tree map should zoom at centering around the mouse pointer. r=fitzgen 2016-04-14 07:17:00 +02:00
Nick Fitzgerald f2a6ddf449 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.
2016-04-11 18:04:31 -07:00
Chris Manchester a3478d13f6 Bug 1242051 - Add inter-directory test support file dependencies to ini manifests. r=gps
Previously, every test and support file would be synced to the objdir
when running any test. Now that only those support files and tests requested
are synced, we note support files required beyond those in a test's
directory in ini manifests.

MozReview-Commit-ID: EmlDz9d4lqt
2016-04-04 14:56:52 -07:00
Greg Tatum e123c43b02 Bug 1238695 - Render census data as a treemap. r=fitzgen, r=vporof 2016-04-01 10:56:00 -04:00
Nick Fitzgerald 58e06bb5d1 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".
2016-03-01 16:20:45 -08:00
Nick Fitzgerald cc5fc36083 Bug 1249453 - Add arrows from parent to children in census trees; r=jsantell
MozReview-Commit-ID: LFo4jJot2Sr
2016-02-23 14:14:37 -08:00
Nick Fitzgerald 80d8d4d413 Bug 1249789, 1249791, 1249792, 1249796, 1249798 - Clean up memory tool breakdowns; r=jsantell
This commit does the following:

- Rename "Group By: {Allocation => Call} Stack" in memory tool
- Rename "Label By: {Allocation => Call} Stack" in memory tool
- Get rid of "Internal Type" for labeling and grouping nodes
- Get rid of group by "Object Class" in memory tool
- Rename group/label by "Coarse Type" to plain "Type" in memory tool
2016-02-22 14:27:51 -08:00
Julian Descottes 159f327bd4 Bug 1243131 - memory tool: select snapshot using ACCEL+{UP/DOWN};r=fitzgen
Adds a keydown listener on the memory panel window. Select previous/next snapshot
when user presses UP/DOWN with the accelKey modifier (metaKey on OSX, ctrlKey on
windows).

Keydown events with modifiers are no longer listened to by the tree node elements.

Updated tree node test.
Added new mochitest to test the new keyboard navigation on the census view. )
2016-02-12 11:03:34 +01:00
Phil Ringnalda ef09fca19a Back out c578a05bb9d6 (bug 1243131) for browser_memory_keyboard-snapshot-list.js timeout threshold exceeded on Linux32 debug 2016-02-11 21:50:07 -08:00
Julian Descottes 00572f935a Bug 1243131 - memory tool: select snapshot using ACCEL+{UP/DOWN};r=fitzgen
Adds a keydown listener on the memory panel window. Select previous/next snapshot
when user presses UP/DOWN with the accelKey modifier (metaKey on OSX, ctrlKey on
windows).

Keydown events with modifiers are no longer listened to by the tree node elements.

Updated tree node test.
Added new mochitest to test the new keyboard navigation on the census view. )
2016-02-08 16:30:01 +01:00
Julian Descottes bdfcd4cb81 Bug 1246570 - mem.tool parentMap maps nodeId->node, remove verbose xpcshell logs;r=fitzgen 2016-02-10 17:57:37 +01:00
Sebastian Hengst 48fa53eaf2 Backed out changeset e1576fc08c1c (bug 1246570) for XPCshell failures. r=backout 2016-02-10 12:55:11 +01:00
Julian Descottes 556d23ff96 Bug 1246570 - memory tool: parentMap should map nodeId->node. r=fitzgen 2016-02-08 21:16:22 +01:00
Nick Fitzgerald 12792b924c Bug 1245739 - Disable the browser_memory_allocationStackBreakdown_01.js test on DEBUG builds. r=jsantell
Unfortunately, this test is frequently reporting the doc_steady_allocation.html
test tab window as leaking. Let's disable it for now, and re-enable it along
with the other leaky tests in bug 1219554.
2016-02-05 09:24:00 -05:00
Nick Fitzgerald ab7e0efdec Bug 1219554 - Remove the unused waitUntilSnapshotState test utility; r=jsantell 2016-02-04 11:53:00 +01:00
Nick Fitzgerald 043b4bd312 Bug 1219554 - Clean up the browser_memory_no_auto_expand.js test; r=jsantell 2016-02-04 11:53:00 +01:00
Nick Fitzgerald 3ddf317546 Bug 1219554 - Enable the browser_memory_filter_01.js test on DEBUG builds; r=jsantell 2016-02-04 11:53:00 +01:00
Nick Fitzgerald db6b534ede Bug 1219554 - Enable the browser_memory_diff_01.js test on DEBUG builds; r=jsantell 2016-02-04 11:53:00 +01:00
Nick Fitzgerald c4b46634e1 Bug 1219554 - Enable the browser_memory_clear_snapshots.js test on DEBUG builds; r=jsantell 2016-02-04 11:53:00 +01:00
Nick Fitzgerald f59ae9c7da Bug 1219554 - Enable the browser_memory_breakdowns_01.js test on DEBUG builds; r=jsantell 2016-02-04 11:53:00 +01:00
Nick Fitzgerald b3c82faa49 Bug 1219554 - Enable the browser_memory_simple_01.js test on DEBUG builds; r=jsantell 2016-02-04 11:52:00 +01:00
Nick Fitzgerald 904bc8d6fa Bug 1245301 - Alphabetize memory tool's browser tests and use consistent naming; r=jimb 2016-02-02 15:09:00 +01:00
Julian Descottes 25aee02003 Bug 1241070 - refresh dominatortreeitem if expand state changed;r=fitzgen
In DominatorTreeItem check props.expanded in shouldComponentUpdate.
Added integration/sanity test to check that a node can be collapsed
and expanded using mouse events.
Added a DominatorTree component unit test to check the expanded nodes
are correctly updated.
2016-01-20 23:21:54 +01:00
J. Ryan Stinnett 5c1ca25210 Bug 1239437 - xpcshell tests for responsive.html. r=pbrosset 2016-01-25 19:44:08 -06:00
Julian Descottes f76f484829 Bug 1240344 - Fix filter propname used when creating toolbar. r=fitzgen
This commit fixes the prop name used when creating the Toolbar component
from app.js : Toolbar expects fitlerString, app was providing filter.

Extended browser_memory_filter_01.js to check the filter value is preserved
after switching views.
2016-01-22 12:23:44 +01:00
Julian Descottes 44e7390ced Bug 1215955 - Add clear snapshots button to devtools memory tool. r=fitzgen 2016-01-12 19:14:15 +01: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 ff9154b3ad Bug 1215955 - Add clear snapshots button to devtools memory tool. r=fitzgen 2016-01-12 19:14:15 +01:00
Nick Fitzgerald 07140c5952 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.
2016-01-13 12:27:30 -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 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 793a519f59 Bug 1160379 - Annotate relevant tests for --tag devtools-memory. r=jsantell 2015-11-05 10:53:00 +01:00
Nick Fitzgerald 6de0017e21 Bug 1221150 - Follow up: disable the browser_memory_no_auto_expand.js test on DEBUG builds; r=me CLOSED TREE 2015-11-04 19:09:29 -08:00
Nick Fitzgerald 7825093ee8 Bug 1221150 - Disable automatic expanding of memory tool's tree items; r=jsantell 2015-11-04 17:51:41 -08:00
Nick Fitzgerald 1d36133f90 Bug 1221673 - Add support for filtering censuses to memory tool's frontend; r=jsantell,vporof 2015-11-04 16:12:31 -08:00
Nick Fitzgerald df49d1fe20 Bug 1218670 - Add % to heap view tree items; r=jsantell 2015-10-29 17:21:06 -07:00
Nick Fitzgerald 4cf9fcfae1 Bug 1219421 - Guide users to recording allocations when no allocation stacks are present; r=jsantell 2015-10-29 01:32:08 -07:00
Nick Fitzgerald 4f9451a5e6 Bug 1219385 - Small fixes for heap view's tree items; r=jsantell
* Display function display name when breaking down by allocation stack.
* Properly check or uncheck the "Invert tree" checkbox depending on if we are
  inverting the heap view's tree or not.
2015-10-29 00:01:48 -07:00
Nick Fitzgerald 53f5f3ff42 Bug 1218560 - Part 2: Add an integration test for allocation stack breakdowns; r=jsantell 2015-10-28 22:46:25 -07:00
Jordan Santell fb6ac75f16 Bug 1218679 - Add integration/smoke-screen tests for memory tool. r=fitzgen 2015-10-28 22:46:25 -07:00
Carsten "Tomcat" Book d0b1d0fdb5 Backed out changeset 5f17f4325f31 (bug 1218679) for memory leaks on a CLOSED TREE 2015-10-28 13:09:57 +01:00
Carsten "Tomcat" Book 9f98f967d8 Backed out changeset 2e2f56672850 (bug 1218560) 2015-10-28 13:09:38 +01:00
Nick Fitzgerald 6ad9719d8d Bug 1218560 - Part 2: Add an integration test for allocation stack breakdowns; r=jsantell 2015-10-28 02:11:06 -07:00