view prof.m @ 953:2c5b9cfc3f25 feature/utux2D

Merge default into feature/utux2D
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 10 Dec 2018 09:28:40 +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