view prof.m @ 521:bcddbc2beef4

Add a symmetric surf
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 28 Aug 2017 14:28:45 +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