source: issm/oecreview/Archive/11946-11960/ISSM-11957-11958.diff@ 11991

Last change on this file since 11991 was 11991, checked in by Eric.Larour, 13 years ago

oecreview from 11518 to present

File size: 961 bytes
  • proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/classes/debug.m

     
    55
    66classdef debug
    77        properties (SetAccess=public)
    8                 valgrind=false;
    9                 gprof   = false;
     8                valgrind = false;
     9                gprof    = false;
     10                petsc_profiling = false;
    1011        end
    1112        methods
    1213                function obj = debug(varargin) % {{{
     
    2526
    2627                        fielddisplay(obj,'valgrind','use Valgrind to debug (0 or 1)');
    2728                        fielddisplay(obj,'gprof','use gnu-profiler to find out where the time is spent');
     29                        fielddisplay(obj,'petsc_profiling','enables PETSc profiling (memory, flops, time)');
    2830
    2931                end % }}}
     32                function marshall(obj,fid) % {{{
     33                        WriteData(fid,'object',obj,'fieldname','petsc_profiling','format','Boolean');
     34                end % }}}
    3035        end
    3136end
Note: See TracBrowser for help on using the repository browser.