Skip to content

Commit

Permalink
Fix PEP-8 formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasf committed Mar 23, 2015
1 parent 55c3977 commit 6a1fef3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plop/collector.py
Expand Up @@ -7,12 +7,13 @@
import time
from plop import platform


class Collector(object):
MODES = {
'prof': (platform.ITIMER_PROF, signal.SIGPROF),
'virtual': (platform.ITIMER_VIRTUAL, signal.SIGVTALRM),
'real': (platform.ITIMER_REAL, signal.SIGALRM),
}
}

def __init__(self, interval=0.01, mode='virtual', flamegraph=False):
self.interval = interval
Expand Down Expand Up @@ -47,7 +48,7 @@ def stop(self):

def wait(self):
while not self.stopped:
pass # need busy wait; ITIMER_PROF doesn't proceed while sleeping
pass # need busy wait; ITIMER_PROF doesn't proceed while sleeping

def handler(self, sig, current_frame):
start = time.time()
Expand Down

0 comments on commit 6a1fef3

Please sign in to comment.