Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

ittnotify increment & decrement API seems broken #37

Open
nagorny opened this issue May 26, 2020 · 0 comments
Open

ittnotify increment & decrement API seems broken #37

nagorny opened this issue May 26, 2020 · 0 comments

Comments

@nagorny
Copy link

nagorny commented May 26, 2020

For the following sample value changing events are skipped. It's very sad as README claims that counters are supported.

#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);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant