aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/profiler/Profiler.java
diff options
context:
space:
mode:
authorGravatar ulfjack <ulfjack@google.com>2018-07-26 07:09:35 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-07-26 07:10:57 -0700
commit46f3524bf391d0d773a94962ccc5a2d023767a0b (patch)
treee1f83bdd8132d3af5451cbec1f853ff2c825fc39 /src/main/java/com/google/devtools/build/lib/profiler/Profiler.java
parent6c99cf14115f26ae8603a15248021aea31d02c96 (diff)
Reduce the set of profiler events for the json profile
This significantly reduces the size of the resulting profiles. Do we need the events that I remove? What do we do with the data? Who knows? PiperOrigin-RevId: 206153368
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/profiler/Profiler.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/profiler/Profiler.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/profiler/Profiler.java b/src/main/java/com/google/devtools/build/lib/profiler/Profiler.java
index 4f1ccb80ae..50af19b80b 100644
--- a/src/main/java/com/google/devtools/build/lib/profiler/Profiler.java
+++ b/src/main/java/com/google/devtools/build/lib/profiler/Profiler.java
@@ -418,7 +418,11 @@ public final class Profiler {
return !type.isVfs()
// Exclude the critical path - it's not useful in the Json trace output.
&& type != ProfilerTask.CRITICAL_PATH
- && type != ProfilerTask.CRITICAL_PATH_COMPONENT;
+ && type != ProfilerTask.CRITICAL_PATH_COMPONENT
+ && type != ProfilerTask.SKYFUNCTION
+ && type != ProfilerTask.ACTION_EXECUTE
+ && type != ProfilerTask.ACTION_COMPLETE
+ && !type.isSkylark();
}
},