diff options
| -rw-r--r-- | src/ModuleCache.h | 1 | ||||
| -rw-r--r-- | src/mainwin.cc | 8 | 
2 files changed, 5 insertions, 4 deletions
| diff --git a/src/ModuleCache.h b/src/ModuleCache.h index 57ff2e7..25ae192 100644 --- a/src/ModuleCache.h +++ b/src/ModuleCache.h @@ -6,6 +6,7 @@ class ModuleCache  public:  	static ModuleCache *instance() { if (!inst) inst = new ModuleCache; return inst; }  	class Module *evaluate(const std::string &filename); +	size_t size() { return this->entries.size(); }  	void clear();  private: diff --git a/src/mainwin.cc b/src/mainwin.cc index 688d935..3708013 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -650,9 +650,6 @@ void MainWindow::compile(bool reload, bool procevents)  			// Dump the tree (to initialize caches).  			// FIXME: We shouldn't really need to do this explicitly..  			this->tree.getString(*this->root_node); - -			PRINT("Compilation finished."); -			if (procevents) QApplication::processEvents();  		}  	} @@ -1049,7 +1046,10 @@ void MainWindow::compileTopLevelDocument(bool reload)  		}  	} -	if (this->root_module) this->root_module->handleDependencies(); +	if (this->root_module) { +		this->root_module->handleDependencies(); +		PRINTB("Module cache size: %d modules", ModuleCache::instance()->size()); +	}  }  void MainWindow::checkAutoReload() | 
