Commit Graph

33 Commits

Author SHA1 Message Date
Florian Queze
6cc0b6e992 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02: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
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
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
5f7d0ced0f Bug 1290142 - Lint devtools/client/performance/modules/ subfolders; r=jsantell
MozReview-Commit-ID: 5K3ugb3xAhM
2016-07-28 11:52:48 -05: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
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
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
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
Victor Porof
9f4a130ec4 Bug 1211839 - Don't allow off the main thread markers to nest under main thread markers, r=smaug, jsantell 2015-10-24 17:10:22 +02:00
Victor Porof
c069753edc Bug 1202657 - Add markers for workers' message passing and serialization/deserialization, r=smaug, jsantell, tromey, ejpbruel 2015-10-21 23:10:05 +02:00
J. Ryan Stinnett
687866dde2 Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
J. Ryan Stinnett
b17c143421 Bug 912121 - Update misc. DevTools paths and comments. rs=devtools 2015-09-21 12:07:31 -05:00
J. Ryan Stinnett
2dada8f365 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -05:00
J. Ryan Stinnett
a3073e0420 Bug 912121 - Migrate major DevTools directories. rs=devtools
Move major DevTools files to new directories using the following steps:

hg mv browser/devtools devtools/client
hg mv toolkit/devtools/server devtools/server
hg mv toolkit/devtools devtools/shared

No other changes are made.
2015-09-21 12:02:24 -05:00