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: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@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: -------

Reply via email to