source: trunk/PerfTest/intel_markup_stats/intel_markup_stats.hpp @ 194

Last change on this file since 194 was 192, checked in by ksherdy, 11 years ago

Updated PerfTest? Makefiles to autodetect 32 vs. 64 bit architecture on Intel.
Initial Intel Markup Stats check in.
Renamed Xerces-C files names to be Xerces-C specific.

File size: 1.2 KB
Line 
1#ifndef INTEL_MARKUP_STATS_HPP_
2#define INTEL_MARKUP_STATS_HPP_
3
4#include "intel_markup_stats_handler.hpp"
5
6extern int comment_count;
7extern int comment_length;
8extern int CDATA_start_count;
9extern int CDATA_start_pos;
10extern int CDATA_length;
11extern int CDATA_end_count;
12extern int PI_count;
13extern int PI_length;
14//extern int empty_elem_count;
15//extern int empty_elem_length;
16extern int start_tag_count;
17extern int start_tag_length;
18extern int attribute_count;
19extern int end_tag_count;
20extern int end_tag_length;
21extern int reference_count;
22extern int reference_length;
23extern int text_item_count;
24extern int text_item_length;
25extern int error_item_count;
26extern int error_item_length;
27extern int nesting_depth;
28extern int max_nesting_depth;
29extern int total_attribute_count;
30extern int total_att_name_length;
31extern int total_att_value_length;
32extern int namespace_count;
33extern int total_namespace_name_length;
34extern int total_namespace_URI_length;
35
36#define print_stats(stat_string, count, total_lgth) \
37        printf("%i %s", count, stat_string);\
38        if (count == 0) printf("s.\n");\
39        else if (count == 1) printf(" of length %i.\n", total_lgth);\
40        else printf("s of avg. lgth %i.\n", total_lgth/count);
41
42
43#endif /* MARKUPSTATS_HANDLER_HPP_ */
44
45
Note: See TracBrowser for help on using the repository browser.