Skip to content

Commit

Permalink
fix: link to dev blob
Browse files Browse the repository at this point in the history
  • Loading branch information
nhtyy committed Dec 16, 2024
1 parent 746e6a3 commit 69a4d65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions book/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules

# Production
/build
build/

# Generated files
.docusaurus
Expand Down
4 changes: 2 additions & 2 deletions book/docs/writing-programs/cycle-tracking.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ To profile a program, you simply need to:

If you're executing a larger program (>100M cycles), you should set `TRACE_SAMPLE_RATE` to reduce the size of the trace file. A sample rate of `1000` means that 1 in every 1000 VM cycles is sampled. By default, every cycle is sampled.

Many examples can be found in the repo, such as this ['fibonacci'](https://github.com/succinctlabs/sp1/blob/12f212e386ae4c2da30cf6a61a7d87615d56bdac/examples/fibonacci/script/src/main.rs#L22) script.
Many examples can be found in the repo, such as this ['fibonacci'](https://github.com/succinctlabs/sp1/blob/dev/examples/fibonacci/script/src/main.rs#L22) script.

Once you have your script it should look like the following:
```rs
Expand Down Expand Up @@ -94,7 +94,7 @@ 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)
![An example screenshot of the Firefox Profiler](@site/static/profiling.png)

#### Interpreting the Profile
- The "time" measurement in the profiler is actually the number of cycles spent,
Expand Down
File renamed without changes

0 comments on commit 69a4d65

Please sign in to comment.