function_calls

Gamma: Version 4.0
Prev |  | Next

# `function_calls`

`function_calls` -- tells how often a function was called during profiling.

## Syntax

    function_calls (function)

## Arguments

`function`

  A function.

## Returns

The number of times this function has been called while profiling was active.

## Description

This function queries the system to determine the number of times that a function was called while profiling was active (using the profile function).

## Example

        Gamma> profile(t);
        t
        for(i=0;i<10;i++)
        {
        	princ("i:",i,"\n");
        }
        >>	i:0
        >>	i:1
        >>	i:2
        >>	i:3
        >>	i:4
        >>	i:5
        >>	i:6
        >>	i:7
        >>	i:8
        >>	i:9
        Gamma> i;
        9
        Gamma> profile(nil);
        t
        Gamma> function_calls(princ);
        10

## See Also

`profile`, `function_runtime`

Prev | Home | Next
`free_cells` | Up | `function_runtime`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.