Quick fprof tips

Simple steps for monitor a process:

For example:

%% Start fprof
fprof:start(),

%% Start a trace of specific process; 
%% do something; stop trace
fprof:trace([start,{procs,whereis(mnesia_recover)}]),
mnesia:set_master_nodes([node1@localhost]),
fprof:trace([stop]),

%% Show the stats
fprof:profile(),
fprof:analyse(),

%% Stop fprof
fprof:stop().