Skip to content

Commit 1267bf1

Browse files
committed
fix
1 parent 16b4623 commit 1267bf1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if(WIN32)
55
elseif(APPLE)
66
set(CMAKE_CXX_FLAGS "-O3 -pthread")
77
else()
8-
set(CMAKE_CXX_FLAGS_DEBUG_INIT "-Wall -g -lprofiler -ltcmalloc -DMY_DEBUG -fno-inline")
8+
set(CMAKE_CXX_FLAGS_DEBUG_INIT "-Wall -g -lprofiler -ltcmalloc -DMY_DEBUG")
99
set(CMAKE_CXX_FLAGS "-O3 -pthread")
1010
endif()
1111

docs/run_profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ def f(N, PRTree, dim):
2525

2626

2727
if __name__ == "__main__":
28-
f(40_000_000, PRTree2D, dim=2)
28+
f(10_000_000, PRTree2D, dim=2)
2929
# f(40, PRTree2D, dim=2)

run_profile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ set -e
22

33
rm -rf build dist .pytest_cache
44
pip uninstall python_prtree -y || true
5-
DEBUG=1 pip install -v -e .
6-
CPUPROFILE_FREQUENCY=1000000 python docs/run_profile.py
5+
DEBUG=1 pip install -v .
6+
python docs/run_profile.py
77

88
so_path=src/python_prtree/PRTree.cpython-310-x86_64-linux-gnu.so
99
google-pprof --callgrind $so_path build.prof > cg_build.prof

0 commit comments

Comments
 (0)