This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
stellar-stellar/src/core/stellar_stat.h

28 lines
608 B
C
Raw Normal View History

#pragma once
2024-04-16 14:12:41 +08:00
2024-04-21 11:30:41 +08:00
#ifdef __cplusplus
2024-04-16 14:12:41 +08:00
extern "C"
{
#endif
#include "packet_io.h"
#include "ip_reassembly.h"
#include "session_manager.h"
struct thread_stat
{
2024-06-25 14:08:33 +08:00
struct packet_io_stat *packet_io;
struct ip_reassembly_stat *ip_reassembly;
struct session_manager_stat *session_mgr;
2024-04-16 14:12:41 +08:00
};
struct stellar_stat;
struct stellar_stat *stellar_stat_new(uint16_t nr_thread);
void stellar_stat_free(struct stellar_stat *stat);
void stellar_stat_output(struct stellar_stat *stat);
void stellar_stat_merge(struct stellar_stat *stat, const struct thread_stat *thr_stat, uint16_t thr_idx);
2024-04-16 14:12:41 +08:00
2024-04-21 11:30:41 +08:00
#ifdef __cplusplus
2024-04-16 14:12:41 +08:00
}
#endif