@@ -2613,30 +2613,30 @@ <h4 id='memory-tracking'>Memory tracking</h4>
26132613 startup flags to Bazel:
26142614 </ p >
26152615 < 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 >
26172617 < li > < code > --host_jvm_args=-DRULE_MEMORY_TRACKER=1</ code > </ li >
26182618 </ ul >
26192619 < 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.
26232623
26242624 Do not forget to keep passing these options to Bazel for every command or the server will
26252625 restart.
26262626 </ p >
26272627 < p > Example:</ p >
26282628 < 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 \
26302630 --host_jvm_args=-DRULE_MEMORY_TRACKER=1 \
26312631 build --nobuild <targets>
26322632
26332633 # 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 \
26352635 --host_jvm_args=-DRULE_MEMORY_TRACKER=1 \
26362636 dump --rules
26372637
26382638 # 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 \
26402640 --host_jvm_args=-DRULE_MEMORY_TRACKER=1 \
26412641 dump --skylark_memory=$HOME/prof.gz
26422642 % pprof -flame $HOME/prof.gz
0 commit comments