I'm looking for a way to do very simple profiling in a mex program triggered from matlab. I compile from matlab using: mex -O CFLAGS="\$CFLAGS -std=c99" rrt.c and then run my program. Really all I need is a thing to see, which of two functions runs faster. However since it all goes down in about 1/100s time(NULL) is not fast enough.
Is there a simple function in C I could call, or are there any real profiling methods for a mex program in matlab?
I saw this post beeing treated as duplicate, but what I want to know is not a C profiler, but something I can use at best within matlab. I use OSX 10.7.5 and matlab 2014b. Thanks for any hints.
Aucun commentaire:
Enregistrer un commentaire