diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-05-21 14:42:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-21 14:42:41 +0200 |
commit | 3a43d7bf8fa9e4a6c3581f2066f893c3c88e58ab (patch) | |
tree | 80a64964532f6474fef4551a9c327aab8437ed4c /src/cstore | |
parent | 9ebfa09aedd35599be616cfb9f11300d367eb6dc (diff) | |
parent | eb304063e05967f7024fb3b2b6f0d38a7df520af (diff) | |
download | vyatta-cfg-3a43d7bf8fa9e4a6c3581f2066f893c3c88e58ab.tar.gz vyatta-cfg-3a43d7bf8fa9e4a6c3581f2066f893c3c88e58ab.zip |
Merge pull request #47 from volodymyrhuti/current
vyos-debug: T4394: extend profiling support
Diffstat (limited to 'src/cstore')
-rw-r--r-- | src/cstore/cstore.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/cstore/cstore.cpp b/src/cstore/cstore.cpp index 4750ba0..71d30d1 100644 --- a/src/cstore/cstore.cpp +++ b/src/cstore/cstore.cpp @@ -2050,20 +2050,9 @@ Cstore::executeTmplActions(char *at_str, const Cpath& path, var_ref_handle = (void *) this; // const_cast for legacy code - std::time_t start_time = std::time(0); - bool ret = execute_list(const_cast<vtw_node *>(actions), def, sdisp.c_str()); var_ref_handle = NULL; - - char* debug_on = getenv("VYOS_DEBUG"); - if (debug_on != NULL) - { - std::time_t stop_time = std::time(0); - unsigned long int exec_time = stop_time - start_time; - output_internal("Action for \"%s\" took %u seconds to execute\n", sdisp.c_str(), exec_time); - } - return ret; } |