opd_stats.c File Reference

#include "opd_stats.h"
#include "opd_extended.h"
#include "oprofiled.h"
#include "op_get_time.h"
#include <dirent.h>
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for opd_stats.c:

Go to the source code of this file.

Functions

static void print_if (char const *fmt, char const *path, char const *filename, int force)
void opd_print_stats (void)

Variables

unsigned long opd_stats [OPD_MAX_STATS]

Detailed Description

Management of daemon statistics

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
John Levon
Philippe Elie

Definition in file opd_stats.c.


Function Documentation

void opd_print_stats ( void   ) 

opd_print_stats - print out latest statistics

Definition at line 38 of file opd_stats.c.

References op_get_time(), OPD_DANGLING_CODE, OPD_DUMP_COUNT, opd_ext_print_stats(), OPD_KERNEL, OPD_LOST_KERNEL, OPD_LOST_NO_MAPPING, OPD_LOST_SAMPLEFILE, OPD_NO_APP_KERNEL_SAMPLE, OPD_NO_CTX, OPD_SAMPLES, opd_stats, and print_if().

Referenced by opd_26_exit(), opd_alarm(), and opd_sigterm().

Here is the call graph for this function:

Here is the caller graph for this function:

static void print_if ( char const *  fmt,
char const *  path,
char const *  filename,
int  force 
) [static]

print_if - print an integer value read from file filename, do nothing if the value read == -1 except if force is non-zero

Definition at line 28 of file opd_stats.c.

References opd_read_fs_int().

Referenced by opd_print_stats().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

unsigned long opd_stats[OPD_MAX_STATS]

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1