Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions instana/meter.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ def collect_metrics(self):
threshold2=th[2])

thr = t.enumerate()
daemon_threads = len([tr.daemon and tr.is_alive() for tr in thr])
alive_threads = len([not tr.daemon and tr.is_alive() for tr in thr])
dead_threads = len([not tr.is_alive() for tr in thr])
daemon_threads = [tr.daemon and tr.is_alive() for tr in thr].count(True)
alive_threads = [not tr.daemon and tr.is_alive() for tr in thr].count(True)
dead_threads = [not tr.is_alive() for tr in thr].count(True)

m = Metrics(ru_utime=u[0] if not self.last_usage else u[0] - self.last_usage[0],
ru_stime=u[1] if not self.last_usage else u[1] - self.last_usage[1],
Expand Down