[comp.unix.questions] What is mcount?

shek@mullian.ee.mu.OZ.AU (Wilson SHEK) (10/30/89)

	When a program is profiled and the results are shown using 
prof, there is always a function named mcount somewhere in the table.
What is mcount and where does it come from?

	Thanks in advance to those who reply.

Wilson

|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|  Wilson  SHEK                     |  ACSnet   : shek@mullian.mu.oz          |
|  Department of Elec Engineering   |  internet : shek@mullian.mu.oz.au       |
|  University of Melbourne          |  uunet    : uunet!munnari!mullian!shek  |

gwyn@smoke.BRL.MIL (Doug Gwyn) (10/30/89)

In article <2589@munnari.oz.au> shek@mullian.ee.mu.OZ.AU (Wilson SHEK) writes:
>	When a program is profiled and the results are shown using 
>prof, there is always a function named mcount somewhere in the table.
>What is mcount and where does it come from?

"mcount" is the part of the run-time support that tallies function
entry counts.  Just ignore it.