Konstantin Vyaznikov

Hi,

Is there a way to zero performance counters for workflow The problem is that is host which hosts runtime was crashed, performance counters never go to zero, until computer is restarted. Or maybe I miss something

For sure this is possible to reset perf counters manually from host on start, but is there 'standard' way

Thanks,

Konstantin.



Re: Windows Workflow Foundation Workflow performance counters

Clement Leung - MSFT

There is no way to zero counters unless you close all references to the performance counter shared memory (ie. In other words, close all workflows and any perfmon tools).






Re: Windows Workflow Foundation Workflow performance counters

Konstantin Vyaznikov

True - for now I really cannot reset workflow foundation perf counters. After I set ReadOnly flag for perf counter to false, I cannot even read RawValue. Hmm, but I can do this with perf counters which I create.

Where is the trick

Unfortunately unloading of perfmon and workflows does not help. Perf counters are not reset.

Thanks,

Konstantin.





Re: Windows Workflow Foundation Workflow performance counters

Konstantin Vyaznikov

Ok. If perf counters cannot be reset, I'll do like this:

I get the value of perf counter on start of the host and will use it as a base for all susequent retrievals, i.e. substracting current perf counter from base perf counter.

Although, let me express an oppinion, that impossibility to reset perf counter in workflow is not convinient, because in this case, it is necessary to unnesessary tricks like above.

Thanks,

Konstantin.





Re: Windows Workflow Foundation Workflow performance counters

Clement Leung - MSFT

You can also try using the per second counters, that may help.