matlab - Mex C profiler Mac -
i'm looking way simple profiling in mex program triggered matlab. compile matlab using: mex -o cflags="\$cflags -std=c99" rrt.c
, run program. need thing see, of 2 functions runs faster. since goes down in 1/100s time(null) not fast enough.
is there simple function in c call, or there real profiling methods mex program in matlab?
i saw post beeing treated duplicate, want know way profile c code compiled gcc in matlab, or easier timing functions. use osx 10.7.5 , matlab 2014b. hints.
edit: chappjc's hint got me looking clock(), does, need time beeing. actual profiling still nice though.
the reason not use tic/toc or similar is, have base , modified code, both run random samples. compiling 2 versions of same code each time change , having step of exporting/importing seed random number generator seems big hustle no value me. write code such don't have repeat myselft. having 2 seperate functions need quite duplicate code, since changes easy , few, integrated in not 1 spot.
Comments
Post a Comment