diff --git a/src/include/traceconfig.hpp b/src/include/traceconfig.hpp index 2ba1e9294..89544364f 100644 --- a/src/include/traceconfig.hpp +++ b/src/include/traceconfig.hpp @@ -4,7 +4,7 @@ #define __TRACECONFIG_H #include - +#include "printf.h" #include #include #include @@ -38,6 +38,7 @@ class TraceConfig { auto res = _memoize.find(filename); if (res != _memoize.end()) { + printf_("Memoize find %s %d\n", res->first.c_str(), res->second); return res->second; } // Return false if filename contains paths corresponding to the native @@ -66,6 +67,7 @@ class TraceConfig { // strstr(filename, "site-packages") != nullptr || (strstr(filename, "<") && (strstr(filename, "(std::string(filename), false)); return false; @@ -75,6 +77,7 @@ class TraceConfig { if (owner != nullptr) { for (char* traceable : items) { if (strstr(filename, traceable)) { + printf_("Inside %s\n", traceable); _memoize.insert( std::pair(std::string(filename), true)); return true; @@ -98,6 +101,7 @@ class TraceConfig { bool result = false; if (did_resolve_path) { // True if we found this file in the original path. + printf("Resolved %s\n", resolved_path, scalene_base_path); result = (strstr(resolved_path, scalene_base_path) != nullptr); }