linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] Add support for Firefox's gecko profile format
@ 2023-06-21 19:35 Anup Sharma
  2023-06-21 19:37 ` [PATCH 1/9] scripts: python: Add check for correct perf script format Anup Sharma
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Anup Sharma @ 2023-06-21 19:35 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim,
	Ian Rogers, Adrian Hunter, Anup Sharma, linux-perf-users,
	linux-kernel

This patch series adds support for Firefox's gecko profile format.
The format is documented here [1]

The series adds a new python script that can be used to convert the 
perf script to gecko profile format. To use this script, use the
following commands: 

perf record 
perf script -F +pid > perf_data.txt
python3 firefox-gecko-converter.py > gecko_profile.json

Also dont forget to change the chown of the output file to the user[2].

[1] https://github.com/firefox-devtools/profiler/blob/main/docs-developer/gecko-profile-format.md
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1823421

Anup Sharma (9):
  scripts: python: Add check for correct perf script format
  scripts: python: implement add sample function and return it
  scripts: python: Introduce thread sample processing in
    convertPerfScriptProfile
  scripts: python: Implement parsing of input data in
    convertPerfScriptProfile
  scripts: python: implement function for thread creation
  scripts: python: implement get or create stack function
  scripts: python: implement get or create frame function
  scripts: python: Finalize convertPerfScriptProfile and return profile
    data
  scripts: python: Add temporary main function for testing purposes

 .../scripts/python/firefox-gecko-converter.py | 249 ++++++++++++++++++
 1 file changed, 249 insertions(+)
 create mode 100644 tools/perf/scripts/python/firefox-gecko-converter.py

-- 
2.34.1


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2023-07-06 15:58 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-21 19:35 [PATCH 0/9] Add support for Firefox's gecko profile format Anup Sharma
2023-06-21 19:37 ` [PATCH 1/9] scripts: python: Add check for correct perf script format Anup Sharma
2023-06-21 19:39 ` [PATCH 2/9] scripts: python: implement add sample function and return finish function Anup Sharma
2023-06-21 19:40 ` [PATCH 3/9] scripts: python: Introduce thread sample processing in convertPerfScriptProfile Anup Sharma
2023-06-21 19:41 ` [PATCH 4/9] scripts: python: Implement parsing of input data " Anup Sharma
2023-06-24  0:03   ` Namhyung Kim
2023-07-05 19:56     ` Anup Sharma
2023-06-21 19:43 ` [PATCH 5/9] scripts: python: implement function for thread creation Anup Sharma
2023-06-21 19:44 ` [PATCH 6/9] scripts: python: implement get or create stack function Anup Sharma
2023-06-21 19:45 ` [PATCH 7/9] scripts: python: implement get or create frame function Anup Sharma
2023-06-24  0:04   ` Namhyung Kim
2023-07-05 20:01     ` Anup Sharma
2023-07-06 15:57       ` Ian Rogers
2023-06-21 19:46 ` [PATCH 8/9] scripts: python: Finalize convertPerfScriptProfile and return profile data Anup Sharma
2023-06-21 19:46 ` [PATCH 9/9] scripts: python: Add temporary main function for testing purposes Anup Sharma
2023-06-22  4:43 ` [PATCH 0/9] Add support for Firefox's gecko profile format Adrian Hunter
2023-06-22 20:03   ` Anup Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).