•  Back 
  •  GEMDOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FilePsetlimit()
Prusage()                                                            GEMDOS

Syntax

VOID Prusage( rusg )
LONG *rusg;

Function      Prusage() returns resource information about the current
              process.

Opcode        286 (0x11E)

Availability  This function is available under all MiNT versions integrated
              with MultiTOS.

Parameters    rusg is a pointer to an array of 8 LONGs as follows:

              Name                rusg[x]    Meaning

              PRU_KERNELTIME          0    Time spent by process in MiNT
                                           kernel.

              PRU_PROCESSTIME         1    Time spent by process in its
                                           own code.

              PRU_CHILDKERNALTIME     2    Total MiNT kernel time spent
                                           by children of this process.

              PRU_CHILDPROCESSTIME    3    Total user code time spent by
                                           children of this process.

              PRU_MEMORY              4    Total memory allocated by
                                           process (in bytes).

              -                     5-7    Reserved for future use.

Binding       pea      rusg
              move.w   #$11E,-(sp)
              trap     #1
              addq.l   #6,sp

Comments      All times given are in milliseconds.

See Also      Psetlimit()