Change reporting code (ProfileUtil.h) for using scoped objects

Description

BTW! Qt already have QScopedPointer object for this purposes. Please have a look at

from kkv(but use time calculation from current realization because it is more precise!!):
class PerfCounter
{
time_t time;
string m_name;

PerfCounter(name): time(now()), m_name(name) {}
~PerfCounter() { syslog("operation takes in msec %d", now()-time}
}

Использование

f()
{
...something

// interesting place
{
PerfCounter point("some testing");
interestingOperation(...);
} <--- this reporting will be written

}

Environment

None

Test scenario

None

Parent branch

devel-bsc-mark

Assignee

Mark Zaslavskiy

Reporter

Mark Zaslavskiy

Labels

None

External issue ID

None

Leader

Sergey Balandin

Architect

Kirill Krinkin

Customer visible

None

Fix versions

Affects versions

Priority

00.Blocker
Configure