view prof.m @ 440:0ef8965dd745

Improve inteface and functionality of plotConvergence()
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 13 Mar 2017 14:40:14 +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