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

[WIP] Extended functionality of gopsutil #82

Closed
wants to merge 33 commits into from
Closed

[WIP] Extended functionality of gopsutil #82

wants to merge 33 commits into from

Conversation

MadhavJivrajani
Copy link
Member

Description

  • Used the ps command to get the scheduling policy assigned to a process.
  • Used the procfs package to get the frequency of operation of each CPU.

Partly solves #35

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

  • I have read the contribution guidelines and followed it as far as possible.
  • I have performed a self-review of my own code (if applicable)
  • I have commented my code, particularly in hard-to-understand areas (if applicable)
  • I have run go fmt on my code (reference)
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • Any dependent and pending changes have been merged and published

Note:

MadhavJivrajani and others added 30 commits October 5, 2020 19:46
* issue #65

* fix: uint32->int32
Avoid storing all procs, parse PID when killing the process
Exit proc gracefully and fix formatting
Paint row red on error in proc

Also, changed row color to magenta when selected for killing
 - renamed `paused` to `killSelected`
 - removed unnecessary once statement in updateProcs
 - if a process is selected for killing, check if the
   PID still exists on every update

Fixed selection color not persisting
* Toggle help window in procs page

* Refactor to separate help message from widget

* Use ui.List instead of ui.Block

ui.List provides some styling and a simpler way to load data, as well as
option to wrap lines, allowing easier resizing of the widget

* Fix resizing of help widget

* Add keybindings for main and `proc -pid` pages

* Add help widget to `proc -pid` page

* Add help widget to main page

* Fix escape keybinding to clear screen first

Escape was mapped to exiting the help screen, but the help menu would
persist for a while on top of the page (until the next tick). This
causes the redraw to happen immediately

* Fix resizing issue

* Fix formatting error

* Add scroll in help menu, fix render delay

Add scroll option for the help widget when all lines are not visible.
Also fix the render delay when help widget is exited with <Esc>

* Fix formatting and spacing issues

* Fix procGraphs rendering

* Remove unneccesary comment

* Use slice of strings instead of string

* Add kill keybind to help message

* Remove unused module

* Re-add scroll in help menu

* Fix formatting issue
Added cute beaver and elephant ASCII Art
* GH-75: using after channel instead of delay so exit is immediate

* GH-75 BUG exit time too slow

- Using single select loop for generalStats.
- Using select time.After instead of time.Delay for proc single and multiple.

* GH-75: using ticker instead of after

* GH-75: using common tick util for cpu info

* GH-75: added license to tickutils.go
@MadhavJivrajani MadhavJivrajani added the hacktoberfest-accepted Valid contribution and not spam label Oct 23, 2020
@Gituser143
Copy link
Member

@MadhavJivrajani is this stale? Do I close it or does this have something we missed?

@MadhavJivrajani
Copy link
Member Author

Close it, the commits have diverged way too much, I was planning to refactor it a bit anyway

@Gituser143 Gituser143 closed this Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Valid contribution and not spam
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants