Improve profiler output to make it easier to see the
anonymous functions. Review URL: http://codereview.chromium.org/7075 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@486 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
be8762564e
commit
8df739da6d
@ -65,7 +65,9 @@ class JSCodeEntry(CodeEntry):
|
||||
self.size = size
|
||||
|
||||
def ToString(self):
|
||||
return self.name + ' ' + self.type
|
||||
name = self.name
|
||||
if name == '': name = '<anonymous>'
|
||||
return self.type + ': ' + name
|
||||
|
||||
|
||||
class TickProcessor(object):
|
||||
|
Loading…
Reference in New Issue
Block a user