:truck: move profiling to tests directory
paulfantom committed
Sep 9, 2018 at 15:23 UTC
b862a0096b2e7f341c5b0e5dcb1a612913f68e55
11 files changed
+21
-21
.gitignore
+6
-6
@@ -103,12 +103,12 @@ src/cppcheck-build/
103
104
# debugging / profiling
105
makeself/debug/
106
-profile/benchmark-dictionary
107
-profile/benchmark-registry
108
-profile/test-eval
109
-profile/benchmark-line-parsing
110
-profile/benchmark-procfile-parser
111
-profile/statsd-stress
106
+tests/profile/benchmark-dictionary
107
+tests/profile/benchmark-registry
108
+tests/profile/test-eval
109
+tests/profile/benchmark-line-parsing
110
+tests/profile/benchmark-procfile-parser
111
+tests/profile/statsd-stress
112
oprofile_data/
113
vgcore.*
114
callgrind.out.*
packaging/tar-compare
+1
-1
@@ -58,7 +58,7 @@ diff -r "$1" $MYTMP/unpack/* | grep "^Only" | sed \
58
-e '/: iprange$/d' \
59
-e '/: .*\.o$/d' \
60
-e '/: CMakeLists.txt/d' \
61
- -e '/: profile$/d' \
61
+ -e '/: tests$/d' \
62
-e '/python.d: python-modules-installer\.sh\.in$/d' \
63
-e '/: .travis.yml/d' > $MYTMP/out
64
profile/Makefile
deleted
-12
@@ -1,12 +0,0 @@
1
-# SPDX-License-Identifier: GPL-3.0+
2
-
3
-COMMON_CFLAGS=-I ../src/ -I ../
4
-PROFILE_CFLAGS=-O1 -ggdb -Wall -Wextra
5
-
6
-benchmark-procfile-parser: benchmark-procfile-parser.c
7
- gcc ${PROFILE_CFLAGS} ${COMMON_CFLAGS} -o $@ $^ ../src/log.o ../src/procfile.o ../src/threads.o ../src/locks.o ../src/common.o ../src/clocks.o ../src/web_buffer.o ../src/storage_number.o -pthread -lm
8
-
9
-statsd-stress: statsd-stress.c
10
- gcc -O2 -Wall -Wextra -o $@ $^ -pthread
11
-
12
-all: statsd-stress benchmark-procfile-parser
tests/profile/Makefile
new
+12
@@ -0,0 +1,12 @@
1
+# SPDX-License-Identifier: GPL-3.0+
2
+
3
+COMMON_CFLAGS=-I ../../src/ -I ../../
4
+PROFILE_CFLAGS=-O1 -ggdb -Wall -Wextra
5
+
6
+benchmark-procfile-parser: benchmark-procfile-parser.c
7
+ gcc ${PROFILE_CFLAGS} ${COMMON_CFLAGS} -o $@ $^ ../../src/log.o ../../src/procfile.o ../../src/threads.o ../../src/locks.o ../../src/common.o ../../src/clocks.o ../../src/web_buffer.o ../../src/storage_number.o -pthread -lm
8
+
9
+statsd-stress: statsd-stress.c
10
+ gcc -O2 -Wall -Wextra -o $@ $^ -pthread
11
+
12
+all: statsd-stress benchmark-procfile-parser
tests/profile/benchmark-dictionary.c
renamed
+2
-2
@@ -1,9 +1,9 @@
1
/* SPDX-License-Identifier: GPL-3.0+ */
2
/*
3
* 1. build netdata (as normally)
4
- * 2. cd profile/
4
+ * 2. cd tests/profile/
5
* 3. compile with:
6
- * gcc -O3 -Wall -Wextra -I ../src/ -I ../ -o benchmark-dictionary benchmark-dictionary.c ../src/dictionary.o ../src/log.o ../src/avl.o ../src/common.o -pthread
6
+ * gcc -O3 -Wall -Wextra -I ../../src/ -I ../../ -o benchmark-dictionary benchmark-dictionary.c ../../src/dictionary.o ../../src/log.o ../../src/avl.o ../../src/common.o -pthread
7
*
8
*/
9