Commit Graph
63 Commits
Author SHA1 Message Date
Kerem KAT 269736ba77 Bug 1242601 - Change devtools "Show allocation triggers" button style to resemble a link. r=gtatum 2017-01-04 18:35:25 +03:00
Nicholas Nethercote 813e825754 Bug 1335595 (part 4) - Merge ThreadProfile into ThreadInfo. r=mstange.
ThreadInfo and ThreadProfile are hopelessly intertwined.

- ThreadInfo has an owning pointer to ThreadProfile. ThreadProfile has a raw
  back pointer to ThreadInfo. A reference to one is as good as a reference to
  the other, and references to one frequently reach into the other.

- An exception is SyncProfile, a sub-class of ThreadProfile, which instead has
  an owning pointer to its ThreadInfo. (This makes the SyncProfile's destructor
  dubious, because it deletes the ThreadInfo, which could conceivably re-call
  into SyncProfile's destructor.)

- ThreadProfile also has copies of five ThreadInfo fields (mThreadId,
  mIsMainThread, mPlatformData, mStackTop, mPseudoStack) even though it also
  has direct ThreadInfo access via the back pointer.

The only good reason for having the two classes separate is that some
ThreadInfo objects have a null ThreadProfile pointer. But this doesn't justify
the entanglement.

So this patch merges ThreadProfile into ThreadInfo. It visually separates the
methods and fields related to profiles to partially preserve the original
meaning of the split. The new ThreadInfo::hasProfile() method replaces
ThreadInfo::Profile() as the indicator of whether a ThreadInfo has associated
profile data.

Notable points of simplification:

- The five duplicated fields are no longer duplicated.

- NewSyncProfile(), RegisterThread() no longer create ThreadProfile objects.

- ~SyncProfile() becomes trivial.

- ThreadInfo::SetPendingDelete() is simpler.

- Overall it removes ~80 lines of code.

Much of the rest is just plumbing changes.
2017-02-02 11:07:13 +11:00
Nicholas Nethercote cb4cbc3719 Bug 1333296 (part 5) - Remove SPS references in devtools/ and dom/. r=mstange. 2017-01-25 09:08:15 +11:00
Sebastian Hengst c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen 548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Tom Tromey 1976c3df85 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Wes Kocher 20d9f9713d Backed out 2 changesets (bug 1312041) for mass failures a=backout
Backed out changeset c4f42d7d5453 (bug 1312041)
Backed out changeset 9bfbc8480d43 (bug 1312041)
2016-11-01 10:30:45 -07:00
Tom Tromey d1b2d82846 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Amit Chandra 47f41a31a4 Bug 1259227 - Update regex for the imported profile name in the performance tool. r=gregtatum
Change the regex responsible for displaying the imported profile
name in performance module to show full name of the profile
except the extension of the file.

MozReview-Commit-ID: JA59V3P50RG
2016-10-11 13:48:00 +02:00
Jarda Snajdr 4f04418547 Bug 1152441 - Part 2: Rewrite the marker view to use React and the Tree component r=gregtatum
MozReview-Commit-ID: 5TNNsVSql46
2016-09-09 16:55:54 +02:00
Greg Tatum 0fc28c2ff3 Bug 1290988 - Collect devtools/shared/css-* files into a folder. r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8
2016-09-14 10:00:27 -05:00
Sebastian Hengst 93c9c62451 Backed out changeset 1bca17123507 (bug 1290988) for xpcshell failures (test_rewriteDeclarations.js) and devtools failures (browser_styleeditor_syncAddProperty.js). r=backout 2016-09-13 17:43:44 +02:00
Greg Tatum 36e0a1b1fa Bug 1290988 - Collect devtools/shared/css-* files into a folder; r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8
2016-08-29 11:02:34 -05:00
Greg Tatum 5b4041dff2 Bug 1297784 - Turn performance controls into a React component; r=jsantell
MozReview-Commit-ID: 1R8ky0vW4fH
2016-08-18 14:53:03 -05:00
Julian Descottes 3479010529 Bug 1298012 - update references to devtools/client/shared/l10n -> devtools/shared/l10n;r=bgrins
MozReview-Commit-ID: 6p5ADjlbsHu
2016-08-25 17:02:50 +02:00
Julian Descottes 91ae3dcc39 Bug 1294220 - part5: Remove the "chrome://" protocol when using LocalizationHelper;r=tromey
MozReview-Commit-ID: JzT8RyPhHwA
2016-08-20 21:59:34 +02:00
Julian Descottes dd7585e67d Bug 1294220 - part3: Escape % characters in localized strings;r=bgrins
MozReview-Commit-ID: AcUOjfgp9lS
2016-08-23 00:13:04 +02:00
Wes Kocher 29771f4f17 Merge fx-team to m-c a=merge 2016-08-07 00:16:15 -07:00
James Long 24266d6355 Bug 1267365 - move various flags out of DevToolsUtils and don't depend on that module so much r=tromey 2016-08-05 17:41:01 -04:00
Greg Tatum d23dccabb7 Bug 1290142 - Lint devtools/client/performance/modules/; r=jsantell
MozReview-Commit-ID: 5Q71TImHlgW
2016-07-28 11:53:20 -05:00
Greg Tatum 5f7d0ced0f Bug 1290142 - Lint devtools/client/performance/modules/ subfolders; r=jsantell
MozReview-Commit-ID: 5K3ugb3xAhM
2016-07-28 11:52:48 -05:00
Patrick Brosset e19007d87a Bug 1262439 - 1 - Introduce a new eye-dropper highlighter; r=zer0
This is mostly porting code from the XUL eye-dropper over to a new
highlighter file.
While I have tested this locally, this highlighter isn't yet used
in devtools.
This will come in later patches.

MozReview-Commit-ID: IF0puLu5Yc7
2016-07-21 14:35:14 +02: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
Alexandre Poirot e39e7b8130 Bug 1266828 - Convert ViewHelpers.jsm into a module. r=tromey 2016-05-16 03:13:30 -07:00
L. David Baron 38d7232f8e Bug 1111440 - Replace rest of -moz-/Moz prefixed logical margin/padding/border properties with their standard versions. r=heycam
This patch was generated by the command:
  find * -type f -exec sed -i -f ../mozpropsub {} \;
in the root of the repository, with the file ../mozpropsub containing:
s/-moz-padding-end\>/padding-inline-end/g
s/-moz-padding-start\>/padding-inline-start/g
s/-moz-margin-end\>/margin-inline-end/g
s/-moz-margin-start\>/margin-inline-start/g
s/-moz-border-end\>/border-inline-end/g
s/-moz-border-end-color\>/border-inline-end-color/g
s/-moz-border-end-style\>/border-inline-end-style/g
s/-moz-border-end-width\>/border-inline-end-width/g
s/-moz-border-start\>/border-inline-start/g
s/-moz-border-start-color\>/border-inline-start-color/g
s/-moz-border-start-style\>/border-inline-start-style/g
s/-moz-border-start-width\>/border-inline-start-width/g
s/\<MozPaddingEnd\>/paddingInlineEnd/g
s/\<MozPaddingStart\>/paddingInlineStart/g
s/\<MozMarginEnd\>/marginInlineEnd/g
s/\<MozMarginStart\>/marginInlineStart/g
s/\<MozBorderEnd\>/borderInlineEnd/g
s/\<MozBorderEndColor\>/borderInlineEndColor/g
s/\<MozBorderEndStyle\>/borderInlineEndStyle/g
s/\<MozBorderEndWidth\>/borderInlineEndWidth/g
s/\<MozBorderStart\>/borderInlineStart/g
s/\<MozBorderStartColor\>/borderInlineStartColor/g
s/\<MozBorderStartStyle\>/borderInlineStartStyle/g
s/\<MozBorderStartWidth\>/borderInlineStartWidth/g

The diffs for the following files:
  layout/style/nsCSSPropAliasList.h
  layout/style/test/property_database.js
  layout/style/test/test_value_computation.html
were then manually removed from the patch.

MozReview-Commit-ID: 8fbYnlZcn9U
2016-05-14 00:00:18 -07:00
James Long ece81a7a77 Bug 1265775 - replace Cu.reportError with console.error in devtools client code r=tromey 2016-05-06 11:29:10 -04:00
Tom Tromey f2bf3cc37b Bug 1266842 - move css-color.js to devtools/client/shared; r=pbro
MozReview-Commit-ID: 9zS1Y4Ape2u
2016-04-28 08:41:40 -06:00
Victor Porof 84ed8499fa Bug 1258661 - Make the fields property in the markers blueprint consistent, r=jsantell 2016-03-28 13:50:02 +02:00
Victor Porof 376e3d66cd Bug 1258645 - Update all occurences of MarkerUtils to use the new module, r=jsantell 2016-03-28 13:50:02 +02:00
Victor Porof 9fc9d3a289 Bug 1258645 - Split marker-utils.js into two modules (one DOM-only and one blueprint-only) and cleanup code rot, r=jsantell 2016-03-28 13:50:02 +02:00
Victor Porof 67c2dfa68d Bug 1258416 - Cleanup marker.js and marker-formatters.js by adding missing l10n strings, removing dead code and updating comments, r=jsantell 2016-03-22 10:17:21 +01:00
Victor Porof 23860cb7c6 Bug 1258371 - Cleanup performance/modules/io.js to pass eslint and switch to using DOM promises, r=jsantell 2016-03-22 10:17:21 +01:00
Victor Porof b84ba78eb0 Bug 1258309 - Update all occurences of ViewHelpers.Prefs to use the new module, r=jsantell 2016-03-22 10:17:21 +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
Victor Porof fc6cf42589 Bug 1258302 - Create a categories module instead of placing everything in global.js, r=jsantell 2016-03-22 10:17:20 +01:00
Victor Porof 7ffc9a0e68 Bug 1232289 - Deep tree of call stacks ends up with hidden overflow to right of toolbox, can't see the function names, r-jsantell 2016-03-21 10:05:12 +01:00
Victor Porof 385429598e Bug 1245886 - Refactor performance tests, r=jsantell 2016-03-16 09:39:39 +01:00
Wes Kocher 1bcfd47283 Merge m-c to fx-team, a=merge
MozReview-Commit-ID: LQ4NtghbPdw
2016-03-01 15:30:35 -08:00
Jordan Santell 8215bc31f3 Bug 1251084 - Remove WebConsoleUtils.abbreviateSourceURL with source-utils function. r=linclark 2016-03-01 14:32:11 -08:00
Andrea Marchesini 851964a752 Bug 1249950 - Add Performance Markers for MessagePort - patch 2, r=smaug, r=vporof 2016-03-01 09:16:18 +01:00
Jordan Santell ca09989977 Bug 1246555 - Abort infinite loop when a marker has a recursive stack trace in the marker details view. r=vp
MozReview-Commit-ID: KLBXHfNF7EB
2016-02-23 14:13:56 -08:00
Jordan Santell 49fa51b3b3 Bug 1175756 - Change JIT optimizations to be a view pref, rather than a recording pref. r=vp 2016-02-05 08:04:12 -08:00
Jordan Santell 12579c63f8 Bug 1176056 - Tests for the JITOptimizations react component. r=fitzgen 2016-02-03 12:04:51 -08:00
Greg Tatum c48f3b3e73 Bug 1164252 - Profiler should be able to parse evaluated location sites. r=jsantell 2016-01-28 08:29:00 -05:00
Jordan Santell 55b0638c25 Bug 1226319 - Part 3 - Land JIT Viewer implemented in react. r=fitzgen 2016-01-28 13:00:54 -08:00
Jordan Santell 1f5d1fcdef Bug 1240981 - Make performance tools use BrowserLoader. r=fitzgen 2016-01-21 15:04:05 -08:00
Nick Fitzgerald 147e8bf9f8 Bug 1233831 - Part 4: Add metadata for the minor GC markers; r=vporof
This commit adds the necessary metadata for the performance tool to render the
new minor gc markers.
2016-01-19 12:48:22 -08:00
Jordan Santell 7c2a9c7bfe Bug 1219544 - Decouple the react Frame component from the memory view and pull out source utilities from frame utilities in performance tool. r=fitzgen 2015-12-29 13:23:05 -05:00
Jordan Santell 1e6e240ebd Bug 968510 - Demangle function names in the profiler and flame graph if created via C++. r=vporof 2015-12-21 16:15:19 -08:00