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

provider/windows: minimal process provider #22

Merged
merged 4 commits into from
Jul 18, 2018
Merged

Conversation

axw
Copy link
Member

@axw axw commented Jul 17, 2018

Implement a minimal process provider for Windows; just enough to support sysinfo.Self().

All Processes now implement CPUTimer, so CPUTimer is embedded in the Process interface. Similarly,
all Processes now implement Memory, so the Memory method is transferred to Process, and the Memory interface removed.

axw added 2 commits July 17, 2018 11:15
Implement a minimal process provider for Windows;
just enough to support sysinfo.Self(). The resulting
Process implements types.Memory and types.CPUTimer.
@axw axw requested a review from andrewkroh July 17, 2018 06:24
@axw
Copy link
Member Author

axw commented Jul 17, 2018

@andrewkroh with this, is there any reason to not embed CPUTimer and Memory in the Process interface? i.e. require all Processes to implement them?

@andrewkroh
Copy link
Member

+1 for embedding them in Process.

axw added 2 commits July 18, 2018 09:40
All Processes now implement CPUTimer, so CPUTimer
is embedded in the Process interface. Similarly,
all Processes now implement Memory, so the Memory
method is transferred to Process, and the Memory
interface removed.
Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

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

LGTM

@axw axw merged commit 2290917 into elastic:master Jul 18, 2018
@axw axw deleted the windows-process branch July 18, 2018 02:09
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