Skip to content

Bug 1907892 Expose MemoryDistribution's accumulate samples#3418

Open
Jtech3029 wants to merge 2 commits intomozilla:mainfrom
Jtech3029:main
Open

Bug 1907892 Expose MemoryDistribution's accumulate samples#3418
Jtech3029 wants to merge 2 commits intomozilla:mainfrom
Jtech3029:main

Conversation

@Jtech3029
Copy link

Copied the function signature and comment from /metrics implementation and exposed on MemoryDistribution's trait

Copied the function signature and comment from /metrics implementation
and exposed on MemoryDistribution's trait
@Jtech3029 Jtech3029 requested a review from a team as a code owner March 11, 2026 11:43
@Jtech3029 Jtech3029 requested review from travis79 and removed request for a team March 11, 2026 11:43
///
/// Please note that this assumes that the provided samples are already in
/// the "unit" declared by the instance of the metric type (e.g. if the the
/// instance this method was called on is using [`MemoryUnit::Kilobyte`], then
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// instance this method was called on is using [`MemoryUnit::Kilobyte`], then
/// instance this method was called on is using [`crate::MemoryUnit::Kilobyte`], then

This should fix the CI test failure (which complained about not finding the MemoryUnit type)

Copy link
Author

Choose a reason for hiding this comment

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

Thank you

Copied the function signature and comment from /metrics implementation
and exposed on MemoryDistribution's trait
@Jtech3029 Jtech3029 requested a review from badboy March 14, 2026 03:45
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