Skip to content

Commit

Permalink
Changes from PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakayorihiro committed Dec 6, 2024
1 parent 7bf15fa commit c14dcd2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 33 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
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
31 changes: 0 additions & 31 deletions tools/profiler/finagle-with-svg.py

This file was deleted.

0 comments on commit c14dcd2

Please sign in to comment.