diff options
Diffstat (limited to 'src/core/processors.h')
-rw-r--r-- | src/core/processors.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/processors.h b/src/core/processors.h index 4f82dc3..6104c97 100644 --- a/src/core/processors.h +++ b/src/core/processors.h @@ -36,12 +36,21 @@ /* Mise en place de mécanismes internes */ typedef bool (* init_arch_fc) (void); +/* Affichage de statistiques */ +#ifdef DEBUG_DUMP_STATS +typedef void (* dump_arch_stats_fc) (void); +#endif + /* Suppression de mécanismes internes */ typedef void (* exit_arch_fc) (void); /* Enregistre un processeur pour une architecture donnée. */ +#ifdef DEBUG_DUMP_STATS +bool register_processor_type(const char *, const char *, GType, init_arch_fc, dump_arch_stats_fc, exit_arch_fc); +#else bool register_processor_type(const char *, const char *, GType, init_arch_fc, exit_arch_fc); +#endif /* Charge les définitions de processeurs "natifs". */ bool load_hard_coded_processors_definitions(void); @@ -55,6 +64,10 @@ const char *get_arch_processor_name(const char *); /* Fournit le processeur d'architecture correspondant à un type. */ GArchProcessor *get_arch_processor_for_type(const char *); +/* Imprime des statistiques quant aux partages. */ +#ifdef DEBUG_DUMP_STATS +void display_share_stats(GArchProcessor *); +#endif #endif /* _ANALYSIS_DB_COLLECTION_H */ |