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:
kasperl@chromium.org 2008-10-10 09:26:40 +00:00
parent be8762564e
commit 8df739da6d

View File

@ -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):