Commit 63b6d741 authored by Anmol Vatsa's avatar Anmol Vatsa

profiling local flows

parent 49e7d228
......@@ -974,6 +974,9 @@ int cn_dispatch_create(cn_principal_t *as, cn_dispatch_result_t *result,
/* Actions before insert */
switch (type) {
case CN_FLOW: {
struct timespec starttime;
clock_gettime(CLOCK_REALTIME, &starttime);
c_log_debug("DEBUG:%s:%lu.%lu:Start", __func__, starttime.tv_sec, starttime.tv_nsec);
cn_dispatch_create_flow_args_t * fargs =
(cn_dispatch_create_flow_args_t *) args;
c_log_debug("creating flow!");
......@@ -1001,6 +1004,10 @@ int cn_dispatch_create(cn_principal_t *as, cn_dispatch_result_t *result,
*/
res = __cn_dispatch_create_flow(as, result, args, &obj, &obj_base);
if (obj == NULL) { goto fail1; }
struct timespec endtime;
clock_gettime(CLOCK_REALTIME, &endtime);
c_log_debug("DEBUG:%s:%lu.%lu:End", __func__, endtime.tv_sec, endtime.tv_nsec);
c_log_debug("DEBUG:%s:End-Start:%lu", __func__, mytimediff(starttime, endtime));
}
break;
case CN_RP: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment