Skip to content

enable system diagnostics package to show threading info#23

Merged
binary1230 merged 2 commits intomasterfrom
diagnostics_package1
Aug 31, 2016
Merged

enable system diagnostics package to show threading info#23
binary1230 merged 2 commits intomasterfrom
diagnostics_package1

Conversation

@binary1230
Copy link
Copy Markdown
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
Comment thread sideboard/lib/_threads.py Outdated
"""
try:
if not platform.system().startswith('Linux'):
raise ValueError
Copy link
Copy Markdown
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
Copy Markdown
Contributor

+1 great stuff!

@binary1230
Copy link
Copy Markdown
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.

2 participants