view prof.m @ 977:c9009d5a3101

Refactor time.Cdiff and add getEnergyMethod
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 07 Jan 2019 15:56:35 +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