Statistics
| Branch: | Revision:

streamers / measures.h @ 2deba9d9

History | View | Annotate | Download (1.07 KB)

1
/*
2
 *  Copyright (c) 2010 Csaba Kiraly
3
 *
4
 *  This is free software; see gpl-3.0.txt
5
 */
6
#ifndef MEASURES_H
7
#define MEASURES_H
8

    
9
#include <stdbool.h>
10

    
11
struct nodeID;
12

    
13
void init_measures();
14
void end_measures();
15
void add_measures(struct nodeID *id);
16
void delete_measures(struct nodeID *id);
17

    
18
void reg_chunk_duplicate();
19
void reg_chunk_playout(int id, bool b, uint64_t timestamp);
20
void reg_incoming_neigh_size(int s);
21
void reg_outgoing_neigh_size(int s);
22
void reg_chunk_receive(int id, uint64_t timestamp, int hopcount, bool old, bool dup);
23
void reg_chunk_send(int id);
24
void reg_offer_accept_out(bool b);
25
void reg_offer_accept_in(bool b);
26
void reg_offers_in_flight(int running_offer_threads);
27
void reg_queue_delay(double last_queue_delay);
28

    
29
double get_receive_delay(void);
30
#ifdef MONL
31
double get_chunk_playout(void);
32
double get_rtt(struct nodeID *id);
33
double get_lossrate(struct nodeID *id);
34
double get_transmitter_lossrate(struct nodeID *id);
35
double get_average_lossrate(struct  nodeID**id, int len);
36
int get_hopcount(struct nodeID *id);
37
double get_rx_bytes_chunks(struct nodeID *id);
38
#endif
39

    
40
#endif