Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1340)

Side by Side Diff: src/stats/wscript

Issue 318800043: Stats module enhancements
Patch Set: Created 7 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- 1 ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2 2
3 def configure(conf): 3 def configure(conf):
4 have_sqlite3 = conf.check_cfg(package='sqlite3', uselib_store='SQLITE3', 4 have_sqlite3 = conf.check_cfg(package='sqlite3', uselib_store='SQLITE3',
5 args=['--cflags', '--libs'], 5 args=['--cflags', '--libs'],
6 mandatory=False) 6 mandatory=False)
7 7
8 conf.env['SQLITE_STATS'] = have_sqlite3 8 conf.env['SQLITE_STATS'] = have_sqlite3
9 conf.report_optional_feature("SqliteDataOutput", "SQlite stats data output", 9 conf.report_optional_feature("SqliteDataOutput", "SQlite stats data output",
10 conf.env['SQLITE_STATS'], 10 conf.env['SQLITE_STATS'],
11 "library 'sqlite3' not found") 11 "library 'sqlite3' not found")
12 12
13 def build(bld): 13 def build(bld):
14 obj = bld.create_ns3_module('stats', ['core']) 14 obj = bld.create_ns3_module('stats', ['core'])
15 obj.source = [ 15 obj.source = [
16 'helper/file-helper.cc', 16 'helper/file-helper.cc',
17 'helper/gnuplot-helper.cc', 17 'helper/gnuplot-helper.cc',
18 'helper/stats-helper.cc',
19 'helper/stats-delay-helper.cc',
20 'helper/stats-throughput-helper.cc',
21 'model/application-packet-probe.cc',
18 'model/data-calculator.cc', 22 'model/data-calculator.cc',
19 'model/time-data-calculators.cc', 23 'model/time-data-calculators.cc',
20 'model/data-output-interface.cc', 24 'model/data-output-interface.cc',
21 'model/omnet-data-output.cc', 25 'model/omnet-data-output.cc',
22 'model/data-collector.cc', 26 'model/data-collector.cc',
23 'model/gnuplot.cc', 27 'model/gnuplot.cc',
24 'model/data-collection-object.cc', 28 'model/data-collection-object.cc',
25 'model/probe.cc', 29 'model/probe.cc',
26 'model/boolean-probe.cc', 30 'model/boolean-probe.cc',
27 'model/double-probe.cc', 31 'model/double-probe.cc',
28 'model/time-probe.cc', 32 'model/time-probe.cc',
29 'model/uinteger-8-probe.cc', 33 'model/uinteger-8-probe.cc',
30 'model/uinteger-16-probe.cc', 34 'model/uinteger-16-probe.cc',
31 'model/uinteger-32-probe.cc', 35 'model/uinteger-32-probe.cc',
32 'model/time-series-adaptor.cc', 36 'model/time-series-adaptor.cc',
33 'model/file-aggregator.cc', 37 'model/file-aggregator.cc',
34 'model/gnuplot-aggregator.cc', 38 'model/gnuplot-aggregator.cc',
35 'model/get-wildcard-matches.cc',· 39 'model/get-wildcard-matches.cc',·
40 'model/application-delay-probe.cc',·
41 'model/bytes-probe.cc',·
42 'model/collector-map.cc',·
43 'model/distribution-collector.cc',·
44 'model/interval-rate-collector.cc',·
45 'model/multi-file-aggregator.cc',·
46 'model/scalar-collector.cc',·
47 'model/traffic-time-tag.cc',·
48 'model/unit-conversion-collector.cc'
36 ] 49 ]
37 50
38 module_test = bld.create_ns3_module_test_library('stats') 51 module_test = bld.create_ns3_module_test_library('stats')
39 module_test.source = [ 52 module_test.source = [
40 'test/basic-data-calculators-test-suite.cc', 53 'test/basic-data-calculators-test-suite.cc',
41 'test/average-test-suite.cc', 54 'test/average-test-suite.cc',
42 'test/double-probe-test-suite.cc', 55 'test/double-probe-test-suite.cc',
56 'test/distribution-collector-test-suite.cc'
43 ] 57 ]
44 58
45 headers = bld(features='ns3header') 59 headers = bld(features='ns3header')
46 headers.module = 'stats' 60 headers.module = 'stats'
47 headers.source = [ 61 headers.source = [
48 'helper/file-helper.h', 62 'helper/file-helper.h',
49 'helper/gnuplot-helper.h', 63 'helper/gnuplot-helper.h',
64 'helper/stats-helper.h',
65 'helper/stats-delay-helper.h',
66 'helper/stats-throughput-helper.h',
67 'model/application-packet-probe.h',
50 'model/data-calculator.h', 68 'model/data-calculator.h',
51 'model/time-data-calculators.h', 69 'model/time-data-calculators.h',
52 'model/basic-data-calculators.h', 70 'model/basic-data-calculators.h',
53 'model/data-output-interface.h', 71 'model/data-output-interface.h',
54 'model/omnet-data-output.h', 72 'model/omnet-data-output.h',
55 'model/data-collector.h', 73 'model/data-collector.h',
56 'model/gnuplot.h', 74 'model/gnuplot.h',
57 'model/average.h', 75 'model/average.h',
58 'model/data-collection-object.h', 76 'model/data-collection-object.h',
59 'model/probe.h', 77 'model/probe.h',
60 'model/boolean-probe.h', 78 'model/boolean-probe.h',
61 'model/double-probe.h', 79 'model/double-probe.h',
62 'model/time-probe.h', 80 'model/time-probe.h',
63 'model/uinteger-8-probe.h', 81 'model/uinteger-8-probe.h',
64 'model/uinteger-16-probe.h', 82 'model/uinteger-16-probe.h',
65 'model/uinteger-32-probe.h', 83 'model/uinteger-32-probe.h',
66 'model/time-series-adaptor.h', 84 'model/time-series-adaptor.h',
67 'model/file-aggregator.h', 85 'model/file-aggregator.h',
68 'model/gnuplot-aggregator.h', 86 'model/gnuplot-aggregator.h',
69 'model/get-wildcard-matches.h', 87 'model/get-wildcard-matches.h',
88 'model/application-delay-probe.h',·
89 'model/bytes-probe.h',·
90 'model/collector-map.h',·
91 'model/distribution-collector.h',·
92 'model/interval-rate-collector.h',·
93 'model/stats-callback-definitions.h',·
94 'model/multi-file-aggregator.h',·
95 'model/scalar-collector.h',·
96 'model/traffic-time-tag.h',
97 'model/unit-conversion-collector.h'
70 ] 98 ]
71 99
72 if bld.env['SQLITE_STATS']: 100 if bld.env['SQLITE_STATS']:
73 headers.source.append('model/sqlite-data-output.h') 101 headers.source.append('model/sqlite-data-output.h')
74 obj.source.append('model/sqlite-data-output.cc') 102 obj.source.append('model/sqlite-data-output.cc')
75 obj.use.append('SQLITE3') 103 obj.use.append('SQLITE3')
76 104
77 if (bld.env['ENABLE_EXAMPLES']): 105 if (bld.env['ENABLE_EXAMPLES']):
78 bld.recurse('examples') 106 bld.recurse('examples')
79 107
80 bld.ns3_python_bindings() 108 bld.ns3_python_bindings()
OLDNEW
« src/stats/model/bytes-probe.h ('K') | « src/stats/test/distribution-collector-test-suite.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b