From 69a4d65366b00e4c7cb905ed34b489fa899ccf24 Mon Sep 17 00:00:00 2001 From: nhtyy Date: Mon, 16 Dec 2024 09:34:11 -0800 Subject: [PATCH] fix: link to dev blob --- book/.gitignore | 1 + book/docs/writing-programs/cycle-tracking.mdx | 4 ++-- book/{ => static}/profiling.png | Bin 3 files changed, 3 insertions(+), 2 deletions(-) rename book/{ => static}/profiling.png (100%) diff --git a/book/.gitignore b/book/.gitignore index 44e68351d..1e9bbc244 100644 --- a/book/.gitignore +++ b/book/.gitignore @@ -3,6 +3,7 @@ node_modules # Production /build +build/ # Generated files .docusaurus diff --git a/book/docs/writing-programs/cycle-tracking.mdx b/book/docs/writing-programs/cycle-tracking.mdx index 13cb66321..5c5901db5 100644 --- a/book/docs/writing-programs/cycle-tracking.mdx +++ b/book/docs/writing-programs/cycle-tracking.mdx @@ -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 @@ -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, diff --git a/book/profiling.png b/book/static/profiling.png similarity index 100% rename from book/profiling.png rename to book/static/profiling.png