Skip to content

[Feature] Metrics in Posix#914

Open
UESTC-AHao wants to merge 1 commit into
ModelEngine-Group:developfrom
UESTC-AHao:develop
Open

[Feature] Metrics in Posix#914
UESTC-AHao wants to merge 1 commit into
ModelEngine-Group:developfrom
UESTC-AHao:develop

Conversation

@UESTC-AHao
Copy link
Copy Markdown
Contributor

Purpose

Metrics in Posix

Modifications

Test

img_v3_0210o_309ddd9f-3e01-4982-82ed-1f109d21813g
img_v3_0210n_c15dce0e-d056-43df-855b-f1a07233130g

double speedGBs = (size / (1024.0 * 1024.0 * 1024.0)) / (durationMs / 1000.0);
if (type == TransTask::Type::DUMP) {
UC::Metrics::UpdateStats("posix_dump_duration", durationMs);
UC::Metrics::UpdateStats("posix_dump_speed", speedGBs);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What happens if metrics-related configurations are not enabled?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

UpdateStats will return directly if metrics-related configurations are not enabled.

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.

2 participants