Commit Graph
175 Commits
Author SHA1 Message Date
"Helen V. Holmes" ad3150e30d Bug 1247331: Make import snapshot an icon,r=ntim
MozReview-Commit-ID: 4p73KYag0sT
2016-07-12 20:26:00 +02:00
Ruturaj 789137ad80 Bug 1253195 - Separate filter and search boxes visually, and make the text styling consistent. r=ntim
MozReview-Commit-ID: 1KZQA9X44Qi
2016-07-08 23:03:00 +02: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
Tom Tromey 474aade274 Bug 1273941 - replace uses of promise.defer in devtools/client/framework; r=jryans
MozReview-Commit-ID: GwgbcXOmvtK
2016-06-09 09:04:58 -06:00
Nick Fitzgerald d1b4cd56b2 bug 1265723 - Decouple the MemoryFront from the MemoryActor; r=ejpbruel 2016-06-10 13:28:15 -07:00
J. Ryan Stinnett 169c44d5f6 Bug 1193390 - Remove single arg Cu.import from /devtools. r=tromey
A few miscellaneous linting issues also addressed near the lines involved.

MozReview-Commit-ID: 9t1RwxdSS2X
2016-06-09 14:10:07 -05:00
Tom Tromey 86974842a1 Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ
2016-05-17 13:07:55 -06: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
J. Ryan Stinnett 7bdf3cf623 Bug 1270619 - Add missing imports instead of using globals. r=pbro
MozReview-Commit-ID: 28Xn7N9FSZr
2016-05-09 13:35:09 -05:00
Tom Tromey 3a49936872 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 74de773d2c 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 323443bd29 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 35cfb425c6 Bug 1263397 - The tree map should zoom at centering around the mouse pointer. r=fitzgen 2016-04-14 07:17:00 +02:00
Greg Tatum 6a489c59d7 Bug 1242628 - Add ability to remove a single snapshot from the list. r=fitzgen 2016-04-15 09:36:00 +02:00
Nick Fitzgerald f2954353a1 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 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
Wes Kocher d34e61e3ec Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9YZdlIARozU
2016-04-08 16:47:03 -07:00
Greg Tatum bc76b1a280 Bug 1261159 - Tree map zooming is awkward. r=fitzgen 2016-04-07 07:27:00 -04:00
Nick Fitzgerald 31cff7b4b0 Bug 1262480 - Clean up getCurrentCensusTaker style; r=jimb 2016-04-08 09:36:34 -07:00
Nick Fitzgerald 59b798a66b 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
Nick Fitzgerald 1ee8846119 Bug 1237054 - Part 1: Get the devtools/client/memory/test/chrome/* tests passing without DevToolsUtils.assert failures; r=jryans 2016-04-05 19:21:00 +02:00
Nick Fitzgerald 7df204612a Bug 1237054 - Part 0: Make tests fail if DevToolsUtils.assert fails; r=jryans 2016-04-05 19:21:00 +02:00
Nick Fitzgerald 4e3f65bcce Bug 1253803 - Ensure that we maintain the focused node state when changing labels in the dominators view; r=jsantell 2016-04-04 17:36:00 +02: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
Jarda Snajdr b6c74118ca Bug 1220208 - Move clear button to top left corner in toolbars r=bgrins
MozReview-Commit-ID: 5xIjd2TkvP6
2016-03-25 10:01:12 -07:00
Lin Clark 8458d982bf Bug 1239436 - Remove in-place mutation of trees' expanded sets in reducers. r=fitzgen 2016-03-16 13:19:00 +01:00
Nick Fitzgerald fc96061ea1 Bug 1241815 - Show a message when filtering yields no matches; r=jsantell 2016-03-23 13:08:29 -07:00
Julian Descottes 724045b436 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
2016-03-21 17:14:16 +01:00
Victor Porof bfccfa9153 Bug 1258305 - Update all occurences of ViewHelpers.L10N and MultiL10N to use the new module, r=jsantell 2016-03-22 10:17:21 +01:00
Julian Descottes d49214ab2d Bug 1254726 - fix intermittent test_action-clear-snapshots_06 (osx10.6);r=fitzgen
After enabling diff view and selecting two snapshots, wait for TAKE_CENSUS_DIFF_END
action in the test before deleting all snapshots. Otherwise, TAKE_CENSUS_DIFF_END
might be dispatched after clearSnapshots toggled diff mode off.

MozReview-Commit-ID: HNmIVn1SC8c
2016-03-11 03:04:07 +01:00
Jordan Santell 9632efd3fe Bug 1251033 - Part 1 - BrowserLoader now has an option to only load shared components and not require an additional directory. r=jryans 2016-03-08 19:19:09 -08:00
Lin Clark 22c4f4aa33 Bug 1253650 - Fix React propType warnings. r=fitzgen 2016-03-04 18:23:00 +01:00
Julian Descottes ff06b8081e 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
2016-03-07 21:23:32 +01:00
J. Ryan Stinnett de2f55cad7 Bug 1253125 - Stop duplicating telemetry from inside tools. r=mratcliffe
MozReview-Commit-ID: IRidYhLsJpy
2016-03-03 16:16:39 -06: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
Jordan Santell 8215bc31f3 Bug 1251084 - Remove WebConsoleUtils.abbreviateSourceURL with source-utils function. r=linclark 2016-03-01 14:32:11 -08:00
Oussama Ben Guirat c659af7c52 Bug 1206341 - Fix memory tool direction for rtl locales. r=ntim
MozReview-Commit-ID: JgjF5tfllt5
2016-03-01 06:36:00 +01:00
Alexandre Poirot bb787b541e Bug 1245530 - Use require(Services) instead of Cu.import(Services.jsm). r=jryans 2016-02-27 04:51:10 -08:00
Nick Fitzgerald f6e4ebf261 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 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
Brian Grinstead 03b245db06 Bug 1246733 - Remove stylesheet references of 'devtools/skin/common.css' and instead import it in theme files;r=ntim,r=ochameau
MozReview-Commit-ID: AwS9aJ4dypm
2016-02-16 16:10:25 -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
Alexandre Poirot c278a0c6db Bug 1245462 - Replace usages of gDevTools.jsm by module imports. r=jryans 2016-02-11 04:29:47 -08: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