about summary refs log tree commit diff
path: root/src/debug.cpp
diff options
context:
space:
mode:
authorPjotr Prins2025-11-24 13:06:50 +0100
committerPjotr Prins2025-11-24 13:06:50 +0100
commitf03c82ea21acda54de8cced07ba8150cfafb3769 (patch)
tree2432c99cbfed02f3fe9a84a5b55643aff44c1bdb /src/debug.cpp
parentc5a402a651d3c6393b1f758fc011c7247e4f042f (diff)
downloadpangemma-f03c82ea21acda54de8cced07ba8150cfafb3769.tar.gz
Added profiler and figured speed regression with openblas
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index b26e173..6cefcc7 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -162,6 +162,8 @@ void disable_segfpe() {
 }
 */
 
+#ifndef NDEBUG
+
 void write(const char *s, const char *msg) {
   if (!is_debug_data_mode() && !is_debug_dump_mode()) return;
   ofstream out(debug_dump_path + "debug-dump-" + msg + ".txt");
@@ -232,6 +234,8 @@ void write(const gsl_matrix *m, const char *msg) {
           cout << "}" << endl;
 }
 
+#endif // NDEBUG
+
 /*
   Helper function to make sure gsl allocations do their job because
   gsl_matrix_alloc does not initiatize values (behaviour that changed