Internal change for profiling

PiperOrigin-RevId: 494135244
This commit is contained in:
MediaPipe Team 2022-12-09 04:11:05 -08:00 committed by Copybara-Service
parent 3aeec84ac0
commit 4c4df2cf18

View File

@ -232,6 +232,11 @@ class GraphProfiler : public std::enable_shared_from_this<ProfilingContext> {
const ProfilerConfig& profiler_config() { return profiler_config_; } const ProfilerConfig& profiler_config() { return profiler_config_; }
// Helper method to expose the config to other profilers.
const ValidatedGraphConfig* GetValidatedGraphConfig() {
return validated_graph_;
}
private: private:
// This can be used to add packet info for the input streams to the graph. // This can be used to add packet info for the input streams to the graph.
// It treats the stream defined by |stream_name| as a stream produced by a // It treats the stream defined by |stream_name| as a stream produced by a