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

Refactor Process struct #4

Open
38 tasks
trizinix opened this issue Apr 2, 2014 · 1 comment
Open
38 tasks

Refactor Process struct #4

trizinix opened this issue Apr 2, 2014 · 1 comment
Milestone

Comments

@trizinix
Copy link
Contributor

trizinix commented Apr 2, 2014

We can't prefetch all the properties for the user. We shouldn't be inconsistent if a property is prefetched or up-to-date. Hence we have to return always an up-to-date value.
The Process should be an opaque data type and we should provide the following methods to fetch the relevant property.

  • process_pid
  • process_ppid
  • process_name
  • process_exe
  • process_cmdline
  • process_create_time
  • process_parent
  • process_cwd
  • process_username
  • process_uids
  • process_gids
  • process_terminal
  • process_nice
  • process_ionice
  • process_rlimit
  • process_io_counters
  • process_num_ctx_switches
  • process_num_fds
  • process_num_handles
  • process_num_threads
  • process_threads
  • process_cpu_times
  • process_cpu_percent
  • process_cpu_affinity
  • process_memory_info
  • process_memory_info_ex
  • process_memory_percent
  • process_memory_maps
  • process_children
  • process_open_files
  • process_connections
  • process_is_running
  • process_send_signal
  • process_suspend
  • process_resume
  • process_terminate
  • process_kill
  • process_wait
@nibrahim
Copy link
Collaborator

nibrahim commented Apr 3, 2014

Agreed. I made a mention of this in README.

@k4rtik k4rtik modified the milestones: Clean up API, 1.0.0-beta Jan 17, 2016
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

No branches or pull requests

3 participants