From d31f3c7bdf03c874ff9518d47d060adc18322d6b Mon Sep 17 00:00:00 2001 From: lucko Date: Fri, 7 Oct 2022 20:26:24 +0100 Subject: Split profiler output into windows (#253) --- spark-common/src/main/proto/spark/spark.proto | 9 +++++++++ spark-common/src/main/proto/spark/spark_sampler.proto | 15 +++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) (limited to 'spark-common/src/main/proto') diff --git a/spark-common/src/main/proto/spark/spark.proto b/spark-common/src/main/proto/spark/spark.proto index 2ea341f..be76bd7 100644 --- a/spark-common/src/main/proto/spark/spark.proto +++ b/spark-common/src/main/proto/spark/spark.proto @@ -152,6 +152,15 @@ message WorldStatistics { } } +message WindowStatistics { + int32 ticks = 1; + double cpu_process = 2; + double cpu_system = 3; + double tps = 4; + double mspt_median = 5; + double mspt_max = 6; +} + message RollingAverageValues { double mean = 1; double max = 2; diff --git a/spark-common/src/main/proto/spark/spark_sampler.proto b/spark-common/src/main/proto/spark/spark_sampler.proto index 3f30fb2..2cb08f1 100644 --- a/spark-common/src/main/proto/spark/spark_sampler.proto +++ b/spark-common/src/main/proto/spark/spark_sampler.proto @@ -13,6 +13,8 @@ message SamplerData { map class_sources = 3; // optional map method_sources = 4; // optional map line_sources = 5; // optional + repeated int32 time_windows = 6; + map time_window_statistics = 7; } message SamplerMetadata { @@ -69,16 +71,25 @@ message SamplerMetadata { message ThreadNode { string name = 1; - double time = 2; + + // replaced + reserved 2; + reserved "time"; + repeated StackTraceNode children = 3; + repeated double times = 4; } message StackTraceNode { - double time = 1; + // replaced + reserved 1; + reserved "time"; + repeated StackTraceNode children = 2; string class_name = 3; string method_name = 4; int32 parent_line_number = 5; // optional int32 line_number = 6; // optional string method_desc = 7; // optional + repeated double times = 8; } -- cgit