@@ -2613,30 +2613,30 @@ <h4 id='memory-tracking'>Memory tracking</h4>
2613
2613
startup flags to Bazel:
2614
2614
</ p >
2615
2615
< ul >
2616
- < li > < code > --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.0.1 .jar</ code > </ li >
2616
+ < li > < code > --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.3.0 .jar</ code > </ li >
2617
2617
< li > < code > --host_jvm_args=-DRULE_MEMORY_TRACKER=1</ code > </ li >
2618
2618
</ ul >
2619
2619
< p >
2620
- The java-agent is checked into bazel at
2621
- third_party/allocation_instrumenter/java-allocation-instrumenter-3.0.1 .jar, so make
2622
- sure you adjust < code > $BAZEL</ code > for where you keep your bazel repository.
2620
+ The java-agent is checked into Bazel at
2621
+ third_party/allocation_instrumenter/java-allocation-instrumenter-3.3.0 .jar, so make
2622
+ sure you adjust < code > $BAZEL</ code > for where you keep your Bazel repository.
2623
2623
2624
2624
Do not forget to keep passing these options to Bazel for every command or the server will
2625
2625
restart.
2626
2626
</ p >
2627
2627
< p > Example:</ p >
2628
2628
< pre >
2629
- % bazel --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.0.1 .jar \
2629
+ % bazel --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.3.0 .jar \
2630
2630
--host_jvm_args=-DRULE_MEMORY_TRACKER=1 \
2631
2631
build --nobuild <targets>
2632
2632
2633
2633
# Dump rules
2634
- % bazel --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.0.1 .jar \
2634
+ % bazel --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.3.0 .jar \
2635
2635
--host_jvm_args=-DRULE_MEMORY_TRACKER=1 \
2636
2636
dump --rules
2637
2637
2638
2638
# Dump Starlark heap and analyze it with pprof
2639
- % bazel --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.0.1 .jar \
2639
+ % bazel --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.3.0 .jar \
2640
2640
--host_jvm_args=-DRULE_MEMORY_TRACKER=1 \
2641
2641
dump --skylark_memory=$HOME/prof.gz
2642
2642
% pprof -flame $HOME/prof.gz
0 commit comments