summaryrefslogtreecommitdiff
path: root/src/cstore/cstore.cpp
diff options
context:
space:
mode:
authorVolodymyr Huti <volodymyr.huti@gmail.com>2022-03-29 03:43:47 +0300
committerVolodymyr Huti <volodymyr.huti@gmail.com>2022-05-16 15:34:05 +0300
commiteb304063e05967f7024fb3b2b6f0d38a7df520af (patch)
tree6923ddb4bfbc3cf2e352de8029460d1f5b21de93 /src/cstore/cstore.cpp
parent39d901c16aba8e159d8e250914e744fa74edacd3 (diff)
downloadvyatta-cfg-eb304063e05967f7024fb3b2b6f0d38a7df520af.tar.gz
vyatta-cfg-eb304063e05967f7024fb3b2b6f0d38a7df520af.zip
vyos-debug: T4394: extend profiling support
1. Use chrono library instead of basic C library to improve accuracy 2. Introduce the tracing helpers 3. Add tracing calls to the main processing points NOTE: loger is writing to the stdout, and for bootloader it is redirected to - /var/log/vyatta/vyos-boot-config-loader.log
Diffstat (limited to 'src/cstore/cstore.cpp')
-rw-r--r--src/cstore/cstore.cpp11
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;
}