BigBrotherBot v1.9.0
System Development Information for the BigBrotherBot project.

b3::lib::runsnakerun::hotshotreader Namespace Reference

Classes

class  FileRecord
class  FunctionRecord
class  StackInfo

Functions

def loadHotshot
def loadHotshot2
def asTree

Variables

dictionary GIVES_DELTA
int SECONDS_FRACTION = 000001
tuple t1 = time.time()
tuple t2 = time.time()

Detailed Description

Module implementing the hotshot profile-data reader

Function Documentation

def b3::lib::runsnakerun::hotshotreader::asTree (   heatmap)
Convert stacks to trees
def b3::lib::runsnakerun::hotshotreader::loadHotshot (   filename,
  yieldCount = 10000 
)
Given a hotshot profile file, load to in-memory structures

yields recordCount, { fileno: filename, ... }, { (fileno,lineno): FunctionRecord, ...}

for every yieldCount records in the file
def b3::lib::runsnakerun::hotshotreader::loadHotshot2 (   filename)
Yield a tree-like structure with stack: total values

Variable Documentation

Initial value:
00001 {
00002     _hotshot.WHAT_LINENO:1,
00003     _hotshot.WHAT_EXIT:1,
00004     _hotshot.WHAT_ENTER:1,
00005 }
 All Classes Namespaces Files Functions Variables Properties