[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cover.1687375189.git.anupnewsmail@gmail.com>
Date: Thu, 22 Jun 2023 01:05:26 +0530
From: Anup Sharma <anupnewsmail@...il.com>
To: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
Ian Rogers <irogers@...gle.com>,
Adrian Hunter <adrian.hunter@...el.com>,
Anup Sharma <anupnewsmail@...il.com>,
linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 0/9] Add support for Firefox's gecko profile format
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
Powered by blists - more mailing lists