~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to profile_imports.py

  • Committer: John Arbash Meinel
  • Date: 2006-06-18 04:43:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1794.
  • Revision ID: john@arbash-meinel.com-20060618044313-08d3915d095cb28b
Remove scope name for now, still log it, in case we need it for demandload.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
            mod_time -= c_info[-1]
91
91
            c_times.append((c_info[-1], child))
92
92
 
93
 
        scope_name = info[3]
94
 
        if scope_name is None:
95
 
            txt = '%-62s' % (cur[1][:64],)
96
 
        else:
97
 
            txt = '%-27s\tfor %-24s' % (cur[1], scope_name)
98
93
        # indent, cum_time, mod_time, name,
99
94
        # scope_name, frame_name, frame_lineno
100
 
        out_file.write('%5.1f %5.1f %s %s\t@ %s:%d\n'
 
95
        out_file.write('%5.1f %5.1f %s %-35s\t@ %s:%d\n'
101
96
            % (info[-1]*1000., mod_time*1000., '+'*info[0], 
102
 
               txt, info[1], info[2]))
 
97
               cur[1][:40], info[1], info[2]))
103
98
 
104
99
        if sorted:
105
100
            c_times.sort()