Next Previous Contents

3. Usage

Memtrace is controlled by various command line parameters. The following paragraph shows the output, if memtryce is called without parameters.

  usage : memtrace [options] [prog] [progoptions]
        options are like "-t value"
        -t   : value is the updaterate in ms
        -p   : value is the PID to control
               this option overwrite the prog starting (see below)
        -d   : value is 0 (off) or 1 (on)
        -f   : value is filename : write to file (instead of stdout)
        -s   : value is the timeformat string as used for strftime
        -m   : value is the output format as described below
               example : %atb%mtk%vtm
                         a = actual, m = max, v = average
                         --------------------------------
                         t = total, r = resident, s = shared
                         d = data/stack, l = library, y = dirty\n
                         --------------------------------
                         b = bytes, k = kilobytes, m = megabytes
        prog : the program name which should be traced
               if the option -p is not given, memtrace tries to start
               this program with the progoptions (see below)
        progoptions : all necessary program options
  

The parameters are defined as follows.

The following paragraph shows the result of memtrace calling qpcmcia whit the following parameters.

memtrace -d 1 -t 100 -m %atb%stb%mtk kwrite

  output of memtrace Version 0.1.2
  time;act total[b];act shared[b];max total[k];
  08:02:00-200;2875392.00;2625536.00;2808.00;
  08:02:00-300;4517888.00;3674112.00;4412.00;
  08:02:00-400;4599808.00;3756032.00;4492.00;
  08:02:00-500;5107712.00;4067328.00;4988.00;
  08:02:00-600;5419008.00;4272128.00;5292.00;
  08:02:00-800;6881280.00;5636096.00;6720.00;
  08:04:00-000;25526272.00;6189056.00;24928.00;
  


Next Previous Contents