Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mediapipe packet latency metric #3008

Merged
merged 2 commits into from
Feb 18, 2025
Merged

Mediapipe packet latency metric #3008

merged 2 commits into from
Feb 18, 2025

Conversation

bstrzele
Copy link
Collaborator

🛠 Summary

JIRA/Issue if applicable.
Describe the changes.

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

@bstrzele bstrzele force-pushed the mp_request_latency_metric branch 4 times, most recently from edc16b3 to 5d94518 Compare February 7, 2025 07:53
@bstrzele bstrzele requested review from dtrawins and dkalinowski and removed request for dtrawins February 10, 2025 14:50
@bstrzele bstrzele force-pushed the mp_request_latency_metric branch from a510f77 to 7f17873 Compare February 10, 2025 14:51
@bstrzele bstrzele marked this pull request as ready for review February 10, 2025 14:51
@@ -266,7 +266,8 @@ class HttpLLMCalculator : public CalculatorBase {
} catch (...) {
return absl::InvalidArgumentError("Response generation failed");
}
timestamp = timestamp.NextAllowedInStream();
auto now = std::chrono::system_clock::now();
timestamp = ::mediapipe::Timestamp(std::chrono::duration_cast<std::chrono::microseconds>(now.time_since_epoch()).count());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the name is unfortunate here

Suggested change
timestamp = ::mediapipe::Timestamp(std::chrono::duration_cast<std::chrono::microseconds>(now.time_since_epoch()).count());
iterationBeginTimestamp = ::mediapipe::Timestamp(std::chrono::duration_cast<std::chrono::microseconds>(now.time_since_epoch()).count());

docs/metrics.md Outdated Show resolved Hide resolved
@bstrzele bstrzele force-pushed the mp_request_latency_metric branch from 4dfe6bc to 3694653 Compare February 11, 2025 07:31
@dkalinowski
Copy link
Collaborator

Do we expect a demo? Or old demos to be reworked? @bstrzele

@bstrzele
Copy link
Collaborator Author

Do we expect a demo? Or old demos to be reworked? @bstrzele

There is one demo work in progress for both graph processing time and this one

@bstrzele bstrzele force-pushed the mp_request_latency_metric branch 5 times, most recently from ef43bc6 to df10202 Compare February 17, 2025 09:52
@bstrzele bstrzele force-pushed the mp_request_latency_metric branch from df10202 to 626fb8b Compare February 18, 2025 12:05
@bstrzele bstrzele merged commit c71f945 into main Feb 18, 2025
13 checks passed
@bstrzele bstrzele deleted the mp_request_latency_metric branch February 18, 2025 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants