view prof.m @ 337:e070ebd94d9d feature/beams

Updated Wave2dCurve to use the new grid classes.
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 21 Oct 2016 12:59:07 +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