For the following sample value changing events are skipped. It's very sad as README claims that counters are supported. ~~~ C #include "ittnotify.h" __itt_counter temperatureCounter = __itt_counter_create("Temperature", "Domain"); __itt_counter memoryUsageCounter = __itt_counter_create("Memory Usage", "Domain"); unsigned __int64 temperature; while (...) { ... temperature = getTemperature(); __itt_counter_set_value(temperatureCounter, &temperature); __itt_counter_inc_delta(memoryUsageCounter, getAllocatedMemSize()); __itt_counter_dec_delta(memoryUsageCounter, getDeallocatedMemSize()); ... } __itt_counter_destroy(temperatureCounter); __itt_counter_destroy(memoryUsageCounter); ~~~
For the following sample value changing events are skipped. It's very sad as README claims that counters are supported.