view prof.m @ 229:af3bd542d550 feature/beams

Fixed some bugs.
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 01 Jul 2016 09:45:47 +0200
parents cb65c81d6c87
children
line wrap: on
line source

function prof(f)
    profile on
    try
        f();
        profile viewer
    catch e
        fprintf(2, '\n%s', getReport(e));
        profile clear
    end
end