diff --git a/site/docs/skylark/performance.md b/site/docs/skylark/performance.md index 8d27f907d0fa3c..3b4507dd0d5677 100644 --- a/site/docs/skylark/performance.md +++ b/site/docs/skylark/performance.md @@ -368,7 +368,7 @@ You must pass these two startup flags to *every* Bazel invocation: ``` STARTUP_FLAGS=\ - --host_jvm_args=-javaagent:$(BAZEL)/third_party/allocation_instrumenter/java-allocation-instrumenter-3.0.1.jar \ + --host_jvm_args=-javaagent:$(BAZEL)/third_party/allocation_instrumenter/java-allocation-instrumenter-3.3.0.jar \ --host_jvm_args=-DRULE_MEMORY_TRACKER=1 ``` **NOTE**: The bazel repository comes with an allocation instrumenter. diff --git a/site/docs/user-manual.html b/site/docs/user-manual.html index 559bd7542a732e..77960027fbb7f7 100644 --- a/site/docs/user-manual.html +++ b/site/docs/user-manual.html @@ -2709,12 +2709,12 @@

Memory tracking

startup flags to Bazel:

The java-agent is checked into Bazel at - third_party/allocation_instrumenter/java-allocation-instrumenter-3.0.1.jar, so make + third_party/allocation_instrumenter/java-allocation-instrumenter-3.3.0.jar, so make sure you adjust $BAZEL for where you keep your Bazel repository. Do not forget to keep passing these options to Bazel for every command or the server will @@ -2722,17 +2722,17 @@

Memory tracking

Example:

-    % bazel --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.0.1.jar \
+    % bazel --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.3.0.jar \
     --host_jvm_args=-DRULE_MEMORY_TRACKER=1 \
     build --nobuild <targets>
 
     # Dump rules
-    % bazel --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.0.1.jar \
+    % bazel --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.3.0.jar \
     --host_jvm_args=-DRULE_MEMORY_TRACKER=1 \
     dump --rules
 
     # Dump Starlark heap and analyze it with pprof
-    % bazel --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.0.1.jar \
+    % bazel --host_jvm_args=-javaagent:$BAZEL/third_party/allocation_instrumenter/java-allocation-instrumenter-3.3.0.jar \
     --host_jvm_args=-DRULE_MEMORY_TRACKER=1 \
     dump --skylark_memory=$HOME/prof.gz
     % pprof -flame $HOME/prof.gz
diff --git a/src/main/java/com/google/devtools/build/lib/profiler/memory/AllocationTrackerModule.java b/src/main/java/com/google/devtools/build/lib/profiler/memory/AllocationTrackerModule.java
index d0870d67a0647b..2c6034d137d9f1 100644
--- a/src/main/java/com/google/devtools/build/lib/profiler/memory/AllocationTrackerModule.java
+++ b/src/main/java/com/google/devtools/build/lib/profiler/memory/AllocationTrackerModule.java
@@ -36,7 +36,7 @@
  *   
  • --host_jvm_args=-javaagent:(path to Google's java agent jar) * *
  • --host_jvm_args=-DRULE_MEMORY_TRACKER=1 *