view prof.m @ 357:19495f126f06 feature/beams

Minor clean up of d4_variable_4.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 05 Dec 2016 13:10:44 +0100
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