File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -901,8 +901,10 @@ To start profiling,
901
901
# Make sure we're only building release.
902
902
# Build deno and V8's d8.
903
903
./tools/build.py --release d8 deno
904
+
904
905
# Start the program we want to benchmark with --prof
905
- ./target/release/deno tests/http_bench.ts --allow-net --prof &
906
+ ./target/release/deno tests/http_bench.ts --allow-net --v8-flags=--prof &
907
+
906
908
# Exercise it.
907
909
third_party/wrk/linux/wrk http://localhost:4500/
908
910
kill ` pgrep deno`
@@ -929,6 +931,18 @@ isolate-0x7fad98242400-v8.log --preprocess > prof.json
929
931
Open ` third_party/v8/tools/profview/index.html ` in your browser, and select
930
932
` prof.json ` to view the distribution graphically.
931
933
934
+ Useful V8 flags during profiling:
935
+
936
+ - --prof
937
+ - --log-internal-timer-events
938
+ - --log-timer-events
939
+ - --track-gc
940
+ - --log-source-code
941
+ - --track-gc-object-stats
942
+
943
+ Note that you might need to run Deno with ` --current-thread ` flag to capture
944
+ full V8 profiling output.
945
+
932
946
To learn more about ` d8 ` and profiling, check out the following links:
933
947
934
948
- [ https://v8.dev/docs/d8 ] ( https://v8.dev/docs/d8 )
You can’t perform that action at this time.
0 commit comments