Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)

src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Kamaelia/Apps/MH/Profiling.py   kamaelia(Download)
from Kamaelia.Util.PipelineComponent import pipeline
import time
from Axon.Scheduler import _ACTIVE
 
class Profiler(threadedcomponent):
                    running+=1
#                    if not scheduler.isThreadPaused(mprocess):
                    if scheduler.threads[mprocess] == _ACTIVE:
                        active+=1
                        shortactive+=1

src/k/a/kamaelia-HEAD/Sketches/MH/Introspection/Profiling.py   kamaelia(Download)
from Kamaelia.Util.PipelineComponent import pipeline
import time
from Axon.Scheduler import _ACTIVE
 
class Profiler(threadedcomponent):
                    running+=1
#                    if not scheduler.isThreadPaused(mprocess):
                    if scheduler.threads[mprocess] == _ACTIVE:
                        active+=1
                        shortactive+=1

src/k/a/kamaelia-HEAD/Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Apps/MH/Profiling.py   kamaelia(Download)
from Kamaelia.Util.PipelineComponent import pipeline
import time
from Axon.Scheduler import _ACTIVE
 
class Profiler(threadedcomponent):
                    running+=1
#                    if not scheduler.isThreadPaused(mprocess):
                    if scheduler.threads[mprocess] == _ACTIVE:
                        active+=1
                        shortactive+=1