diff --git a/docs/running-calyx/profiler.md b/docs/running-calyx/profiler.md index 3c84a61ae..f7e33fe45 100644 --- a/docs/running-calyx/profiler.md +++ b/docs/running-calyx/profiler.md @@ -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: diff --git a/tools/profiler/finagle-with-svg.py b/tools/profiler/adjust-scaled-flame-svg.py similarity index 100% rename from tools/profiler/finagle-with-svg.py rename to tools/profiler/adjust-scaled-flame-svg.py diff --git a/tools/profiler/create-visuals.sh b/tools/profiler/create-visuals.sh index 279c7d0b9..61e36559d 100644 --- a/tools/profiler/create-visuals.sh +++ b/tools/profiler/create-visuals.sh @@ -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 diff --git a/tools/profiler/profiler-process.py b/tools/profiler/profiler-process.py index 038ebecad..4d187d2a9 100644 --- a/tools/profiler/profiler-process.py +++ b/tools/profiler/profiler-process.py @@ -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