Bug 9787 – [profile] Improve performance of -profile by factor of 10

Status
NEW
Severity
enhancement
Priority
P4
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-22T15:34:13Z
Last change time
2024-12-07T13:32:37Z
Keywords
performance, preapproved
Assigned to
Martin Nowak
Creator
Walter Bright
Moved to GitHub: dmd#17121 →

Comments

Comment #0 by bugzilla — 2013-03-22T15:34:13Z
Although -profile works, it is slow enough that its use is severely restricted on larger, more complex programs. Decreasing its overhead by a factor of 10 will help with this. One place to start is trace_addsym(). It does a tree lookup of the function name upon every function entry. It could be replaced with a hash lookup of the return address for _c_trace_pro() in druntime/src/rt/trace.d.
Comment #1 by robert.schadek — 2024-12-07T13:32:37Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17121 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB