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

Added types for recording and storing performance metrics. #567

Merged
merged 12 commits into from
Aug 13, 2021
Merged

Added types for recording and storing performance metrics. #567

merged 12 commits into from
Aug 13, 2021

Conversation

pmarkowsky
Copy link
Contributor

@pmarkowsky pmarkowsky commented Aug 10, 2021

This adds SNTMetricSet and various gauge and counter types to allow for
exporting metrics such as CPU,Memory usage and other properties that are useful
for tracking reliability and debugging.

This is the first commit of a series to add support for monitoring systems.

First part of a solution for #563

This adds SNTMetricSet and various gauge and counter types to allow for
exporting metrics such as CPU,Memory usage and other properties that are useful
for tracking reliability and debugging.

This is the first commit of a series to add support for monitoring systems.
Source/common/SNTMetricSet.h Outdated Show resolved Hide resolved
Source/common/SNTMetricSet.h Outdated Show resolved Hide resolved
Source/common/SNTMetricSet.h Outdated Show resolved Hide resolved
Source/common/SNTMetricSet.m Outdated Show resolved Hide resolved
Source/common/SNTMetricSet.m Outdated Show resolved Hide resolved
Source/common/SNTMetricSet.m Outdated Show resolved Hide resolved
Source/common/SNTMetricSet.m Outdated Show resolved Hide resolved
Source/common/SNTMetricSet.m Outdated Show resolved Hide resolved
Source/common/SNTMetricSetTest.m Outdated Show resolved Hide resolved
@interface SNTMetricSetTest : XCTestCase
@end

// Stub out NSDate's date method
Copy link
Contributor

Choose a reason for hiding this comment

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

clever :)

You could also do with https://ocmock.org/reference/#mocking-class-methods if you needed finer control.

@pmarkowsky pmarkowsky merged commit 24b96c4 into google:main Aug 13, 2021
@pmarkowsky pmarkowsky deleted the markowsky/metrics_class branch August 13, 2021 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants