Skip to content

Commit

Permalink
Merge branch 'profiler-probe-attempt2' into profiler-timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakayorihiro committed Dec 8, 2024
2 parents 83612de + 5f767cd commit c87216c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/running-calyx/profiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Profilers can help you analyze performance information to find places you can op

In order to run the profiler, you need:
- [fud2][]
- The Python `vcdvcd` library
- The Python [`vcdvcd` library](https://github.com/cirosantilli/vcdvcd). Most likely you can download it by running `python -m pip install --user vcdvcd`.
- A clone of Brendan Gregg's Flamegraph repository: [https://github.com/brendangregg/FlameGraph](https://github.com/brendangregg/FlameGraph)

Then, you need to edit your fud2 configuration file to specify the location of `flamegraph.pl` within the `Flamegraph` repository:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/profiler/create-visuals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ for folded in $( ls ${DATA_DIR}/*.folded ); do
base_name=$( echo "${folded}" | rev | cut -d. -f2- | rev )
if [[ "${base_name}" == *"scaled"* ]]; then
${FLAME_GRAPH_SCRIPT} --countname="cycles" ${folded} > ${base_name}-original.svg
python3 ${SCRIPT_DIR}/finagle-with-svg.py ${base_name}-original.svg > ${base_name}.svg
python3 ${SCRIPT_DIR}/adjust-scaled-flame-svg.py ${base_name}-original.svg > ${base_name}.svg
else
${FLAME_GRAPH_SCRIPT} --countname="cycles" ${folded} > ${base_name}.svg
fi
Expand Down
1 change: 1 addition & 0 deletions tools/profiler/profiler-process.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

DELIMITER = "___"
INVISIBLE = "gray"
ACTIVE_PRIMITIVE_COLOR="lemonchiffon"
TREE_PICTURE_LIMIT=300
SCALED_FLAME_MULTIPLIER=1000 # multiplier so scaled flame graph will not round up.
ts_multiplier = 100 # #ms on perfetto UI that resembles a single cycle
Expand Down

0 comments on commit c87216c

Please sign in to comment.