privacore-open-source-searc.../Statistics.h
2017-09-26 22:25:19 +02:00

36 lines
1.1 KiB
C++

#ifndef GB_STATISTICS_H
#define GB_STATISTICS_H
#include <cstdint>
namespace Statistics {
bool initialize();
void finalize();
void register_query_time(unsigned term_count, unsigned qlang, int error_code, unsigned ms);
void register_spider_time( bool is_new, int error_code, int http_status, unsigned ms );
void register_io_time( bool is_write, int error_code, unsigned long bytes, unsigned ms );
void register_document_encoding(int error_code, int16_t charsetId, uint8_t langId, uint16_t countryId);
void register_socket_limit_hit();
void increment_url_block_counter_call();
void increment_url_block_counter_blacklisted();
void increment_url_block_counter_blacklisted_urlip();
void increment_url_block_counter_blacklisted_urlcorrupt();
void increment_url_block_counter_blacklisted_urlinvalid();
void increment_url_block_counter_whitelisted();
void increment_url_block_counter_shlib_domain_block();
void increment_url_block_counter_shlib_url_block();
void increment_url_block_counter_default();
void increment_crawl_ban_counter(const char *group);
} //namespace
#endif