digitalmars.D.bugs - [Issue 5449] New: To disable profiling of a function/class/struct
- d-bugmail puremagic.com (29/29) Jan 13 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5449
http://d.puremagic.com/issues/show_bug.cgi?id=5449 Summary: To disable profiling of a function/class/struct Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc --- Comment #0 from bearophile_hugs eml.cc 2011-01-13 03:04:03 PST --- Sometimes during profiling a program becomes too much slow. To improve this I suggest to add an annotation to disable profiling for a specific function that the programmer knows to be slow. The profiler will not trace foo() and all static/instance member functions of Bar/Spam: pragma(notrace) void foo() { /*...*/ } pragma(notrace) class Bar { /*...*/ } pragma(notrace) struct Spam { /*...*/ } ------------- Similarly, I'd also like some way to disable the tracing of a function/class/struct/union coming from another module. This syntax is not good yet: import foo: pragma(notrace) something; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 13 2011