OpenDNSSEC-signer  1.4.3
Data Structures | Typedefs | Functions
stats.h File Reference
#include "shared/locks.h"
#include <config.h>
#include <ctype.h>
#include <stdint.h>
#include <time.h>
#include <ldns/ldns.h>
Include dependency graph for stats.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stats_struct
 

Typedefs

typedef struct stats_struct stats_type
 

Functions

stats_typestats_create (void)
 
void stats_log (stats_type *stats, const char *name, ldns_rr_type nsec_type)
 
void stats_clear (stats_type *stats)
 
void stats_cleanup (stats_type *stats)
 

Typedef Documentation

typedef struct stats_struct stats_type

Signer statistics. Statistics structure.

Definition at line 55 of file stats.h.

Function Documentation

void stats_cleanup ( stats_type stats)

Clean up statistics.

Parameters
[in]statsstatistics to be deleted

Clean up statistics.

Definition at line 107 of file stats.c.

References lock_basic_destroy, and stats_struct::stats_lock.

Referenced by zone_cleanup().

void stats_clear ( stats_type stats)
stats_type* stats_create ( void  )

Initialize statistics.

Returns
the initialized stats;

Signer statistics. Initialize statistics.

Definition at line 42 of file stats.c.

References lock_basic_init, stats_clear(), and stats_struct::stats_lock.

Referenced by zone_create().

void stats_log ( stats_type stats,
const char *  name,
ldns_rr_type  nsec_type 
)

Log statistics.

Parameters
[in]statsstatistics
[in]namezone name
[in]nsec_typeNSEC or NSEC3

Log statistics.

Definition at line 78 of file stats.c.

References stats_struct::end_time, stats_struct::nsec_count, stats_struct::nsec_time, ods_log_assert, ods_log_info(), stats_struct::sig_count, stats_struct::sig_reuse, stats_struct::sig_time, stats_struct::sort_count, stats_struct::sort_time, and stats_struct::start_time.

Referenced by tools_output().