Skip to content

Commit 1b90651

Browse files
Bill-hbrhbrkmurray
authored andcommitted
Changed CMake description
1 parent a3df9fd commit 1b90651

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

README.developers.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,40 +1003,33 @@ make CMAKE_PARAMS="-DVTR_IPO_BUILD=off" -j8 vpr
10031003
10041004
Contact your administrator if you do not have the `sudo` rights.
10051005
1006-
2. Enable profiling option when building vpr.
1007-
1008-
You can enable profiling by editing the file `CMAKEList.txt` under `$VTR_ROOT`. Compile vpr after adding these two lines:
1009-
```
1010-
set(PROFILING_FLAGS "-g -pg")
1011-
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg")
1012-
```
1013-
1014-
However, you can also compile directly without editing any makefile settings.
1006+
2. Use the CMake option below to enable VPR profiler build.
10151007
```
10161008
make CMAKE_PARAMS="-DVTR_ENABLE_PROFILING=ON" vpr
10171009
```
10181010
1019-
3. Now, whenever you run the VTR flow script, it will produce an extra file `gmon.out` that contains the raw profile information. First, run `gprof` to parse the info. You will need to specify the path to the `vpr` executable.
1011+
3. With the profiler build, each time you run the VTR flow script, it will produce an extra file `gmon.out` that contains the raw profile information.
1012+
Run `gprof` to parse this file. You will need to specify the path to the VPR executable.
10201013
```
10211014
gprof $VTR_ROOT/vpr/vpr gmon.out > gprof.txt
10221015
```
10231016
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.
1017+
4. Next, use `gprof2dot` to transform the parsed results to a `.dot` file, which describes the graph of your final profile results. If you encounter long function names, specify the `-s` option for a cleaner graph.
10251018
```
10261019
gprof2dot -s gprof.txt > vpr.dot
10271020
```
10281021
1029-
5. You can chain the above commands to directly produce the final dot file:
1022+
5. You can chain the above commands to directly produce the `.dot` file:
10301023
```
10311024
gprof $VTR_ROOT/vpr/vpr gmon.out | gprof2dot -s > vpr.dot
10321025
```
10331026
1034-
6. To view your results, simply use xdot:
1027+
6. Use `xdot` to view your results:
10351028
```
10361029
xdot vpr.dot
10371030
```
10381031
1039-
7. To save your results as a `png` file, use:
1032+
7. To save your results as a `png` file:
10401033
```
10411034
dot -Tpng -Gdpi=300 vpr.dot > vpr.png
10421035
```

0 commit comments

Comments
 (0)