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

What is the difference between GetTotalAllocatedBytes and GetTotalMemory? #10776

Closed
bvbellomo opened this issue Dec 19, 2024 · 5 comments
Closed
Labels
area-System.Runtime Pri3 Indicates issues/PRs that are low priority

Comments

@bvbellomo
Copy link

Type of issue

Missing information

Description

What is the difference between GetTotalAllocatedBytes and GetTotalMemory? Descriptions seem similar, so why isn't this documented?

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.gc.gettotalallocatedbytes?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System/GC.xml

Document Version Independent Id

09a1981d-348f-e7e6-a1e4-1a0304137acb

Article author

@dotnet-bot

@issues-automation issues-automation bot added the Pri3 Indicates issues/PRs that are low priority label Dec 19, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Dec 19, 2024
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

1 similar comment
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Dec 19, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-memory

@eiriktsarpalis eiriktsarpalis removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Jan 7, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-runtime

@adamsitnik
Copy link
Member

Descriptions seem similar, so why isn't this documented?

We don't compare all similar methods and types in our docs, as this would greatly increase their size. Imagine us comparing list vs array and so on.

When you go to https://copilot.microsoft.com/ and ask this question you get a nice answer:

Image

@adamsitnik adamsitnik closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Runtime Pri3 Indicates issues/PRs that are low priority
Projects
None yet
Development

No branches or pull requests

4 participants