Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 703496331
  • Loading branch information
MediaPipe Team authored and copybara-github committed Dec 6, 2024
1 parent 12e3389 commit a567a5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mediapipe/framework/calculator_graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -468,16 +468,18 @@ absl::Status CalculatorGraph::Initialize(

initialized_ = true;

#if !defined(__EMSCRIPTEN__)
// Emscripten only supports single threaded applications.
const auto& runtime_info_logger_config =
validated_graph_->Config().runtime_info();
#if !defined(__EMSCRIPTEN__)
if (runtime_info_logger_config.enable_graph_runtime_info()) {
MP_RETURN_IF_ERROR(graph_runtime_info_logger_.StartInBackground(
runtime_info_logger_config,
[this]() { return GetGraphRuntimeInfo(); }));
}
#else
const auto& runtime_info_logger_config =
validated_graph_->Config().runtime_info();
// TODO - remove once graph runtime infos are supported in
// Emscripten.
if (runtime_info_logger_config.enable_graph_runtime_info()) {
Expand Down

0 comments on commit a567a5f

Please sign in to comment.