This repository was archived by the owner on Aug 13, 2020. It is now read-only.
Commit cb0c09d
committed
Change profiling unit from us to cycles and intoduce padding
This patch fixes the profiler-outptut form looking like this
```
5078127277490292274277443610704 54635 int ocean.sys.Epoll.Epoll.wait(ocean.sys.Epoll.epoll_event_t[], int)
```
to looking like this
```
507812727749 02922742774 43610704 54635 int ocean.sys.Epoll.Epoll.wait(ocean.sys.Epoll.epoll_event_t[], int)
```
Because it is hard to get the cpu frequency under linux,
the profiler uses a hard-coded frequency (3mhz) when running linux.
Thereby introducing misleading information into the perforamnce-profile.
We are circumventing the problem by printing cycles instead of us,
and fix the ouput to included the nessersy left-padding for the larger figures.1 parent 99c99a1 commit cb0c09d
File tree
1 file changed
+46
-0
lines changed- patches/druntime
1 file changed
+46
-0
lines changedLines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments