From 3b124e7995f0ce976f69ae940566e2ba7dd56287 Mon Sep 17 00:00:00 2001 From: Luck Date: Thu, 12 May 2022 20:54:26 +0100 Subject: Include sampler end time in proto --- .../src/main/java/me/lucko/spark/common/sampler/AbstractSampler.java | 1 + spark-common/src/main/proto/spark/spark_sampler.proto | 1 + 2 files changed, 2 insertions(+) (limited to 'spark-common') diff --git a/spark-common/src/main/java/me/lucko/spark/common/sampler/AbstractSampler.java b/spark-common/src/main/java/me/lucko/spark/common/sampler/AbstractSampler.java index 5b236f1..ce466a0 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/sampler/AbstractSampler.java +++ b/spark-common/src/main/java/me/lucko/spark/common/sampler/AbstractSampler.java @@ -96,6 +96,7 @@ public abstract class AbstractSampler implements Sampler { .setPlatformMetadata(platform.getPlugin().getPlatformInfo().toData().toProto()) .setCreator(creator.toData().toProto()) .setStartTime(this.startTime) + .setEndTime(System.currentTimeMillis()) .setInterval(this.interval) .setThreadDumper(this.threadDumper.getMetadata()) .setDataAggregator(dataAggregator.getMetadata()); diff --git a/spark-common/src/main/proto/spark/spark_sampler.proto b/spark-common/src/main/proto/spark/spark_sampler.proto index 48e2a87..51bdd64 100644 --- a/spark-common/src/main/proto/spark/spark_sampler.proto +++ b/spark-common/src/main/proto/spark/spark_sampler.proto @@ -24,6 +24,7 @@ message SamplerMetadata { PlatformStatistics platform_statistics = 8; SystemStatistics system_statistics = 9; map server_configurations = 10; + int64 end_time = 11; message ThreadDumper { Type type = 1; -- cgit