multithreading profiling
jj75607 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Apr 18 06:33:20 PDT 2016
Hello!
Is it possible to start profiling on multithreaded app with Dmd?
https://issues.dlang.org/show_bug.cgi?id=14511 is open. I am
doing wrong or why this program segfaults if compiled with
profiler hooks?
import core.atomic;
shared struct S
{
uint counter;
bool inc() shared
{
atomicOp!("+=")(counter, 1);
return true;
}
}
int main(string[] argv)
{
S s;
return 0;
}
Thank you!
More information about the Digitalmars-d-learn
mailing list