diff --git a/guider/guider.py b/guider/guider.py index 41b1a1a4..8ac3a0d6 100755 --- a/guider/guider.py +++ b/guider/guider.py @@ -7,7 +7,7 @@ __credits__ = "Peace Lee" __license__ = "GPLv2" __version__ = "3.9.8" -__revision__ = "210926" +__revision__ = "210927" __maintainer__ = "Peace Lee" __email__ = "iipeace5@gmail.com" __repository__ = "https://github.com/iipeace/guider" @@ -5230,7 +5230,9 @@ def printProgress(current=0, dest=0): def writeFlamegraph(path, samples, title, depth=20): # flamegraph from https://github.com/rbspy/rbspy/tree/master/src/ui/flamegraph.rs # # fixed font size: 12, bar height: 15 # - height = 15*depth+100 + barHeight = 15 + titleHeight = (title.count(' @@ -5694,8 +5696,8 @@ def writeFlamegraph(path, samples, title, depth=20): Reset Zoom (ESC) Search (F3) - -''' % (height, '\r\n%s' % title if title else '', width) + +''' % (height, '\r\n%s' % title if title else '', titleHeight, width) # complete code for flamegraph # finalCode = flameCode + attrCode + samples + '\n' @@ -6571,7 +6573,7 @@ def getData(self, noTimeout=True): output = output[0] # composite packets # - data = data + output + data += output if not output: break @@ -56767,9 +56769,7 @@ def drawFlame(inputFile=None, callList={}, title=''): continue # add a new title # - if title: - title += '\n' - title += newTitle + title += '%s' % newTitle # merge samples # for sample, cnt in sampleList.items():