You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does cali_end_byname have to immediately follow a loop?
For example, in the following code snippet, function foo does not have a loop.
Will caliper time function foo properly?
Using caliper instrumentation to measure end-to-end runtime, I am confused by the following 2 cases.
Suppose the program is instrumented as following:
main()
{
cali_begin_string_byname('loop', 'main')
..
cali_begin_string_byname('loop', 'loop1')
loop1 code
cali_end_byname('loop')
...
cali_begin_string_byname('loop', 'loop2')
loop1 code
cali_end_byname('loop')
..
cali_end_byname('loop')
}
After data collection, I process the data with
cali-query -s time.inclusive.duration --table a.cali
My expectation is that aggregation of caliper entry "main" should be the end-to-end runtime.
But, I observe two cases:
for some apps, the result is as expected. The entries are like:
main
main/loop1
main/loop2
for others, there is no "main" entry, but only entries like
main/loop1
main/loop2
I am not sure why I see the differences between case 1 and case 2.
Could anyone explain this?
The text was updated successfully, but these errors were encountered: