out/run.sh: write before execution

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-03-14 00:00:02 +00:00
parent 3aa9fbf972
commit 44a45c0656
4 changed files with 22 additions and 4 deletions

View File

@@ -12445,7 +12445,14 @@ Profiling builds as of 3cea7d9ce49bda49c50e756339ff1287fd55df77 both use: `-g -O
* `prof` uses `-pg` for gprof
* `perf` uses `-lprofile` for google-pprof
See also: <<profiling-userland-programs>>.
Profiling techniques are discussed in more detail at: <<profiling-userland-programs>>.
For the `prof` build, you can get the `gmon.out` file with:
....
./run --arch aarch64 --emulator gem5 --userland userland/c/hello.c --gem5-build-type prof
gprof "$(./getvar --arch aarch64 gem5_executable)" > tmp.gprof
....
==== gem5 clang build