~ubuntu-branches/ubuntu/trusty/batmand/trusty

« back to all changes in this revision

Viewing changes to profile.h

  • Committer: Bazaar Package Importer
  • Author(s): Holger Levsen
  • Date: 2007-11-26 09:10:49 UTC
  • Revision ID: james.westby@ubuntu.com-20071126091049-9fqg546f2c4ct759
Tags: upstream-0.2
ImportĀ upstreamĀ versionĀ 0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2006 B.A.T.M.A.N. contributors:
 
2
 * Simon Wunderlich, Marek Lindner
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of version 2 of the GNU General Public
 
6
 * License as published by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
11
 * General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program; if not, write to the Free Software
 
15
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
16
 * 02110-1301, USA
 
17
 *
 
18
 */
 
19
 
 
20
 
 
21
 
 
22
enum {
 
23
 
 
24
        PROF_choose_gw,
 
25
        PROF_update_routes,
 
26
        PROF_update_gw_list,
 
27
        PROF_is_duplicate,
 
28
        PROF_get_orig_node,
 
29
        PROF_update_originator,
 
30
        PROF_purge_orginator,
 
31
        PROF_schedule_forward_packet,
 
32
        PROF_send_outstanding_packets,
 
33
        PROF_COUNT
 
34
 
 
35
};
 
36
 
 
37
 
 
38
struct prof_container {
 
39
 
 
40
        clock_t start_time;
 
41
        clock_t total_time;
 
42
        char *name;
 
43
        uint32_t calls;
 
44
 
 
45
};
 
46
 
 
47
 
 
48
void prof_init( int32_t index, char *name );
 
49
void prof_start( int32_t index );
 
50
void prof_stop( int32_t index );
 
51
void prof_print();