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

enable system diagnostics package to show threading info #23

Merged
merged 2 commits into from
Aug 31, 2016

Conversation

binary1230
Copy link
Contributor

  • cleanup existing debugging stuff
  • gather linux-specific thread ID so we can correlate threads with their system process info in /proc, top, etc
  • create general purpose framework for registering more diagnostics functions
  • add very detailed snapshot printout of per-thread stack traces, run status, thread name, etc
    (these are heavy weapons for diagnosing hung threads / deadlocks)
  • add basic memory reporting, more coming later

this is intended to be heavy weaponry for diagnosing future deadlock issues like the one we hit today in magfest/ubersystem#2017

- cleanup existing debugging stuff
- gather linux-specific thread ID so we can correlate threads with their system process info in /proc, top, etc
- create general purpose framework for registering more diagnostics functions
- add very detailed snapshot printout of per-thread stack traces, run status, thread name, etc
  (these are heavy weapons for diagnosing hung threads / deadlocks)
- add basic memory reporting, more coming later
@binary1230 binary1230 changed the title enable system diagnostics package 1 for threading info enable system diagnostics package to show threading info Aug 27, 2016
"""
try:
if not platform.system().startswith('Linux'):
raise ValueError
Copy link
Contributor

Choose a reason for hiding this comment

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

Not that I expect this to ever actually come up, but in case it ever did, having an actual message with the error would be great, e.g.

raise ValueError('Can only get thread id on Linux systems')

@EliAndrewC
Copy link
Contributor

+1 great stuff!

@binary1230
Copy link
Contributor Author

added extra message when not running on linux systems

@binary1230 binary1230 merged commit 3844d3e into master Aug 31, 2016
@binary1230 binary1230 deleted the diagnostics_package1 branch August 31, 2016 13:54
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.

None yet

2 participants