symbols.tree.dot(dot, threshold=threshold)
dot.write(symbols.filename[:-3] + 'dot')
- def write_txt(self, jobfile=None, jobs=None):
+ def write_txt(self, jobfile=None, jobs=None, limit=None):
if jobs is None:
jobs = [ job for job in jobfile.jobs() ]
continue
output = file(symbols.filename[:-3] + 'txt', 'w')
- symbols.display(output)
+ symbols.display(output, limit)
def display(self, jobfile=None, jobs=None, limit=None):
if jobs is None:
else:
profile = PCProfile()
+ if not categorize:
+ profile.categorize = None
profile.inputdir(jobfile.rootdir)
if graph:
profile.cpu = cpu
profile.write_dot(jobfile=jobfile, threshold=threshold)
- if not categorize:
- for cpu in cpus:
- profile.cpu = cpu
- profile.categorize = None
-
if textout:
for cpu in cpus:
profile.cpu = cpu
if not graph and not textout and not dodot:
for cpu in cpus:
+ if not categorize:
+ profile.categorize = None
profile.cpu = cpu
profile.display(jobfile=jobfile, limit=numsyms)