view prof.m @ 788:b3ea4cccaf15 bcSetupExperiment

Remove some stuff duplicated from the verifyFormat function
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 24 Jul 2018 16:30:15 -0700
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