Commit graph

4 commits

Author SHA1 Message Date
Markus Stange
8ec57ee636 Bug 1494488 - Stop demangling in the geckoProfiler WebExtension API because perf.html knows how to demangle now. r=dthayer
Differential Revision: https://phabricator.services.mozilla.com/D7335

--HG--
extra : moz-landing-system : lando
2018-10-01 22:39:28 +00:00
Doug Thayer
7469d83745 Bug 1362786 - (3) Run CppFiltParser in worker r=kmag
Pulls out the CppFiltParser work into a worker to run in the
background and avoid the jank induced by the final
convertSymsMapToExpectedSymFormat call.

Profiling shows that after this change there is virtually no
jank when asking the geckoProfiler API for symbols.

MozReview-Commit-ID: CAKMvjLa4dl

--HG--
extra : rebase_source : de9202687ca8ffbfa5216f73fe57e97ffdbea8ef
2017-07-21 14:13:37 -07:00
Doug Thayer
ed9ed87b3e Bug 1362786 - (2) Run NMParser in worker r=kmag
Pulls out the NMParser work (parsing nm results and turning
them into an ArrayBuffer'd map of addresses to symbols) into
a worker.

For OSX we will still need to do some work to run c++filt in the
background, but this gets us most of the way there. Without a
Subprocess.jsm usable from a worker, we'll have to bounce data
back to the main thread in order to bounce it to the c++filt
worker.

MozReview-Commit-ID: LZi7J1qGpmh

--HG--
extra : rebase_source : 048329fb085542ecc4c8f8d872e6c4cf0b535376
2017-07-21 14:14:17 -07:00
Doug Thayer
979585d6ed Bug 1326572 - Provide an API for nsIProfiler r=kmag,mstange
In order to rewrite the Gecko Profiler add-on as a WebExtension,
we need an API for the profiler which allows us to control the
nsIProfiler, and symbolicate the stacks that it provides. This
is the implementation of the simpler parts of that API.

TODO:
- Support profiling of remote targets through a new devtools
  API.
- Support the dump_syms breakpad code which was asm.js in the
  old extension by directly calling into native code.
- Figure out a faster way to send the large volume of data from
  getSymbols all the way from our extension down to the content
  process and then into the page's context.

MozReview-Commit-ID: JzDbV4l2eXd

--HG--
extra : rebase_source : fee9acfaa522372c22c61f9b0f1cab13d5da2a86
2017-04-11 09:03:40 -07:00