view prof.m @ 894:f30eafd6d4dc

Add new formatting method to TextTable
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 22 Nov 2018 07:29:30 +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