You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.developers.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -994,7 +994,7 @@ make CMAKE_PARAMS="-DVTR_IPO_BUILD=off" -j8 vpr
994
994
995
995
# Profiling VTR
996
996
997
-
1. Install `gprof`, `gprof2dot`, and `xdot`. Specifically, the previous two packages requires python3, and you should install the last one with `sudo apt install` for all the dependencies you will need for visualizing your profile results.
997
+
1. Install `gprof`, `gprof2dot`, and `xdot`. Specifically, the previous two packages require python3, and you should install the last one with `sudo apt install` for all the dependencies you will need for visualizing your profile results.
998
998
```
999
999
pip3 install gprof
1000
1000
pip3 install gprof2dot
@@ -1011,7 +1011,7 @@ make CMAKE_PARAMS="-DVTR_IPO_BUILD=off" -j8 vpr
However, you can also compile directly withoout editing any makefile settings.
1014
+
However, you can also compile directly without editing any makefile settings.
1015
1015
```
1016
1016
make CMAKE_PARAMS="-DVTR_ENABLE_PROFILING=ON" vpr
1017
1017
```
@@ -1021,7 +1021,7 @@ make CMAKE_PARAMS="-DVTR_IPO_BUILD=off" -j8 vpr
1021
1021
gprof $VTR_ROOT/vpr/vpr gmon.out > gprof.txt
1022
1022
```
1023
1023
1024
-
4. Next, use `gprof2dot` to transform the results to a `.dot` or `.gv` file, which describes how your final profile results will look like. For the `VTR` project, the function names are really long. Therefore, specify `-s` option for a clearer graph.
1024
+
4. Next, use `gprof2dot` to transform the results to a `.dot` or `.gv` file, which describes how your final profile results will look like. If you find the function names really long, specify the `-s` option for a clearer graph.
1025
1025
```
1026
1026
gprof2dot -s gprof.txt > vpr.dot
1027
1027
```
@@ -1036,10 +1036,11 @@ make CMAKE_PARAMS="-DVTR_IPO_BUILD=off" -j8 vpr
1036
1036
xdot vpr.dot
1037
1037
```
1038
1038
1039
-
7. To save your results as a `png` file, type:
1039
+
7. To save your results as a `png` file, use:
1040
1040
```
1041
1041
dot -Tpng -Gdpi=300 vpr.dot > vpr.png
1042
1042
```
1043
+
1043
1044
Note that you can use the `-Gdpi` option to make your picture clearer if you find the default dpi settings not clear enough.
0 commit comments