Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upfeat: Implement process.getProcessMemoryInfo to get the process memory info #16591
+123
−11
Conversation
nitsakh
requested review from
electron/docs
as
code owners
Jan 29, 2019
miniak
requested changes
Jan 29, 2019
felixrieseberg
reviewed
Jan 30, 2019
|
||
if (mate::Locker::IsBrowserProcess() && !Browser::Get()->is_ready()) { | ||
promise->RejectWithErrorMessage( | ||
"Memory Info is available only after app ready"); |
This comment has been minimized.
This comment has been minimized.
felixrieseberg
Jan 30, 2019
Member
Suggested change Beta
"Memory Info is available only after app ready"); | |
"Memory information is only available after the app's 'ready' event (See: electronjs.org/docs/api/app)"); |
felixrieseberg
reviewed
Jan 30, 2019
memory consumed by the Electron code itself in Kilobytes. | ||
|
||
Returns an object giving memory usage statistics about the current process. Note | ||
that all statistics are reported in Kilobytes. |
This comment has been minimized.
This comment has been minimized.
felixrieseberg
Jan 30, 2019
Member
Suggested change Beta
that all statistics are reported in Kilobytes. | |
that all statistics are reported in kilobytes. |
(Typically spelled using lowercase)
felixrieseberg
reviewed
Jan 30, 2019
|
||
Returns an object giving memory usage statistics about the current process. Note | ||
that all statistics are reported in Kilobytes. | ||
This api should be called after app ready. |
This comment has been minimized.
This comment has been minimized.
felixrieseberg
Jan 30, 2019
Member
Suggested change Beta
This api should be called after app ready. | |
This API should not be called before the `app` has emitted the `ready` event. |
felixrieseberg
reviewed
Jan 30, 2019
that all statistics are reported in Kilobytes. | ||
This api should be called after app ready. | ||
|
||
Chromium does not provide `residentSet` value for macOS. This is because macOS |
This comment has been minimized.
This comment has been minimized.
felixrieseberg
Jan 30, 2019
Member
Suggested change Beta
Chromium does not provide `residentSet` value for macOS. This is because macOS | |
Chromium does not provide a `residentSet` value for macOS. This is because macOS |
felixrieseberg
reviewed
Jan 30, 2019
|
||
Chromium does not provide `residentSet` value for macOS. This is because macOS | ||
performs in-memory compression of pages that haven't been recently used. As a | ||
result the resident set size value is not what one would expect. `private` memory |
This comment has been minimized.
This comment has been minimized.
felixrieseberg
Jan 30, 2019
Member
Suggested change Beta
result the resident set size value is not what one would expect. `private` memory | |
result, the resident set size value is not what one would expect. `private` memory |
This comment has been minimized.
This comment has been minimized.
Sorry for the swarm of suggestions, feel free to disregard them as you please. Thank you for the overall effort! |
This comment has been minimized.
This comment has been minimized.
|
alexeykuzmin
referenced this pull request
Jan 30, 2019
Merged
feat: Implement process.getProcessMemoryInfo to get the process memory usage #14847
alexeykuzmin
approved these changes
Jan 30, 2019
This comment has been minimized.
This comment has been minimized.
@miniak I agree with Nitish, let's merge those changes separately. |
This comment has been minimized.
This comment has been minimized.
@felixrieseberg Thank you for the suggestions, they're awesome. |
miniak
approved these changes
Jan 30, 2019
MarshallOfSound
approved these changes
Jan 30, 2019
MarshallOfSound
merged commit ada60a9
into
4-0-x
Jan 30, 2019
20 checks passed
Absolute Zero
Semantic Pull Request
ready to be squashed
Details
appveyor: win-ia32-debug
AppVeyor build succeeded
Details
appveyor: win-ia32-testing
AppVeyor build succeeded
Details
appveyor: win-ia32-testing-pr
AppVeyor build succeeded
Details
appveyor: win-x64-debug
AppVeyor build succeeded
Details
appveyor: win-x64-testing
AppVeyor build succeeded
Details
appveyor: win-x64-testing-pr
AppVeyor build succeeded
Details
ci/circleci: linux-arm-debug
Your tests passed on CircleCI!
Details
ci/circleci: linux-arm-testing
Your tests passed on CircleCI!
Details
ci/circleci: linux-arm64-debug
Your tests passed on CircleCI!
Details
ci/circleci: linux-arm64-testing
Your tests passed on CircleCI!
Details
ci/circleci: linux-checkout
Your tests passed on CircleCI!
Details
ci/circleci: linux-ia32-debug
Your tests passed on CircleCI!
Details
ci/circleci: linux-ia32-testing
Your tests passed on CircleCI!
Details
ci/circleci: linux-ia32-testing-tests
Your tests passed on CircleCI!
Details
ci/circleci: linux-x64-debug
Your tests passed on CircleCI!
Details
ci/circleci: linux-x64-testing
Your tests passed on CircleCI!
Details
ci/circleci: linux-x64-testing-tests
Your tests passed on CircleCI!
Details
release-notes
Release notes found
This comment has been minimized.
This comment has been minimized.
release-clerk
bot
commented
Jan 30, 2019
Release Notes Persisted
|
MarshallOfSound
deleted the
memapi-4
branch
Jan 30, 2019
alexeykuzmin
referenced this pull request
Jan 31, 2019
Open
docs: process.getProcessMemoryInfo() returns a Promise #16593
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
nitsakh commentedJan 29, 2019
•
edited
Backport of #14847.
Description of Change
Checklist
npm test
passesRelease Notes
Notes: Added getProcessMemoryInfo API