-
Notifications
You must be signed in to change notification settings - Fork 179
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
feat(performance-metrics): store to file #14882
feat(performance-metrics): store to file #14882
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
"""Returns the stored context data and clears the storage list.""" | ||
stored_data = self._storage.copy() | ||
self._storage.clear() | ||
rows_to_write = [context_data.csv_row() for context_data in stored_data] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably sort this by start time before writing just in case - once we add various queues or whatever reordering might become possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't it always be sortable by start time regardless? My thought is ONLY robot context data would go in this file. Other metrics like CPU/Memory/Flash would be in a separate file. That way all this does is just push data to a file as fast as possible.
Then when those files are pulled for analysis they can be sorted at that time.
add workflow dispatch so I can test it chore: setup python correctly didn't add the right thing to test it why won't you run just run oh. my. gosh. run! argh sgdf i know I am doing something dumb sigh audible sigh yeah, I was doing something stupid well that was an adventure
d42ab38
to
d75493a
Compare
66601f0
to
abc128a
Compare
Overview
Add functionality to store CSV data in a file
Test Plan
Changelog
store
method to RobotContextTrackerReview requests
None
Risk assessment
Low