Skip to content

Commit

Permalink
chore: add interpreting results section
Browse files Browse the repository at this point in the history
  • Loading branch information
nhtyy committed Nov 22, 2024
1 parent a8f9188 commit f4e042a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions book/writing-programs/cycle-tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,9 @@ To view these profiles, we recommend [Samply](https://github.com/mstange/samply)

Samply uses the Firefox profiler to create a nice visualization of your programs execution.
![An example screenshot of the Firefox Profiler](../profiling.png)

#### Interpreting the Profile
- The "time" measurement in the profiler is actually the number of cycles spent,
in general the less cycles for a given callframe the better.

- The CPU usage of the program will always be constant, as its running in the VM which is single threaded.

0 comments on commit f4e042a

Please sign in to comment.