diff options
author | ulfjack <ulfjack@google.com> | 2018-07-26 07:09:35 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-07-26 07:10:57 -0700 |
commit | 46f3524bf391d0d773a94962ccc5a2d023767a0b (patch) | |
tree | e1f83bdd8132d3af5451cbec1f853ff2c825fc39 /src/main/java/com/google/devtools/build/lib/profiler/Profiler.java | |
parent | 6c99cf14115f26ae8603a15248021aea31d02c96 (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.java | 6 |
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(); } }, |