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;
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18326 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB