[Issue 5449] New: To disable profiling of a function/class/struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 13 03:05:53 PST 2011


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 at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list