Contiki 2.5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
core
sys
sprofiling.h
1
#ifndef __SPROFILING_H__
2
#define __SPROFILING_H__
3
4
#include <stdint.h>
5
6
/* The structure that holds the callsites */
7
struct
sprofile_site_t {
8
void
*addr;
9
uint16_t calls;
10
};
11
12
struct
sprofile_t {
13
uint16_t max_sites;
14
uint16_t num_sites;
15
uint32_t num_samples;
16
struct
sprofile_site_t *sites;
17
};
18
19
20
21
void
sprofiling_init(
void
);
22
void
sprofiling_start(
void
);
23
void
sprofiling_stop(
void
);
24
void
sprofiling_report(
const
char
* name, uint8_t pretty);
25
struct
sprofile_t *sprofiling_get(
void
);
26
inline
void
sprofiling_add_sample(
void
*pc);
27
28
/* Arch functions */
29
void
sprofiling_arch_init(
void
);
30
inline
void
sprofiling_arch_start(
void
);
31
inline
void
sprofiling_arch_stop(
void
);
32
33
#endif
/* __SPROFILING_H__ */
Generated on Fri Aug 30 2013 12:34:07 for Contiki 2.5 by
1.8.3.1