From 65456040301e7ca535f550dfd29ec5eb9922a925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Baylac-Jacqu=C3=A9?= Date: Fri, 11 Oct 2019 14:17:56 +0200 Subject: [PATCH] wut --- src/libexpr/eval.cc | 3 +++ src/libexpr/eval.hh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 9f4b6b41..1e17132f 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -990,7 +990,10 @@ void ExprSelect::eval(EvalState & state, Env & env, Value & v) if (vAttrs->type != tAttrs || (j = vAttrs->attrs->find(name)) == vAttrs->attrs->end()) { + std::cout << "Going into " << name << std::endl; + state.profState def->eval(state, env, v); + std::cout << " " << name << std::endl; return; } } else { diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 400702cc..4997d139 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -280,6 +280,7 @@ public: void printStats(); void realiseContext(const PathSet & context); + ProfilerState profState; private: @@ -354,6 +355,7 @@ public: private: std::vector stackedMeasurements; string funcName; + int currentNestedLevel; /* We index every func and file to leverage Callgrind's string compression. See section "3.1.6.�Subposition Compression" section from [callgrindSpec]. */ std::map funcMap;