Crossfire Server, Trunk  1.75.0
Statistics Struct Reference

This is used for various performance tracking statistics, or just how often certain events are done. More...

#include <global.h>

+ Collaboration diagram for Statistics:

Data Fields

uint64_t spell_hash_full
 Number of times spell hash was full. More...
 
uint64_t spell_merges
 Number of spell merges done. More...
 
uint64_t spell_suppressions
 Number of times ok_to_put_more() returned FALSE. More...
 

Detailed Description

This is used for various performance tracking statistics, or just how often certain events are done.

It is much better to use a common structure then variables about. Note that since these are often counters, I'm using uint64s - this may be overkill, but it is just a couple extra bytes. This is initialized/declared in common/init.c. Note that if it only contains integer values, very easy to initialize/clear it - just a memset.

Definition at line 360 of file global.h.

Field Documentation

◆ spell_hash_full

uint64_t Statistics::spell_hash_full

Number of times spell hash was full.

Definition at line 362 of file global.h.

Referenced by object_merge_spell().

◆ spell_merges

uint64_t Statistics::spell_merges

Number of spell merges done.

Definition at line 361 of file global.h.

Referenced by object_merge_spell().

◆ spell_suppressions

uint64_t Statistics::spell_suppressions

Number of times ok_to_put_more() returned FALSE.

Definition at line 363 of file global.h.

Referenced by ok_to_put_more().


The documentation for this struct was generated from the following file: