diff -r aa2539c91954 -r 1c2bb2fc7c87 perfsrv/piprofiler/plugins/GeneralsPlugin/inc/PriSamplerImpl.h --- a/perfsrv/piprofiler/plugins/GeneralsPlugin/inc/PriSamplerImpl.h Fri Oct 08 14:56:39 2010 +0300 +++ b/perfsrv/piprofiler/plugins/GeneralsPlugin/inc/PriSamplerImpl.h Tue Oct 26 16:20:32 2010 +0300 @@ -89,7 +89,7 @@ DProfilerPriSampler(struct TProfilerGppSamplerData*, TInt id); ~DProfilerPriSampler(); - void Sample(); + void Sample(TAny* aPtr); TInt Reset(DProfilerSampleStream* aStream, TUint32 aSyncOffset); TInt PostSample(); TBool PostSampleNeeded(); @@ -164,7 +164,7 @@ { this->sampleNeeded = false; - LOGSTRING3("CProfilerPriSampler<%d>::PostSample - state %d",BufferSize,this->sampleBuffer->GetBufferStatus()); + LOGSTRING3("CProfilerPriSampler<%d>::PostSample - state %d",BufferSize,this->iSampleBuffer->GetBufferStatus()); //TInt interruptLevel = NKern::DisableInterrupts(0); @@ -203,11 +203,13 @@ template TBool DProfilerPriSampler::PostSampleNeeded() { - LOGSTRING3("CProfilerPriSampler<%d>::PostSampleNeeded - state %d",BufferSize,this->sampleBuffer->GetBufferStatus()); + LOGSTRING3("CProfilerPriSampler<%d>::PostSampleNeeded - state %d",BufferSize,this->iSampleBuffer->GetBufferStatus()); + + TUint32 status = this->iSampleBuffer->GetBufferStatus(); - TUint32 status = this->iSampleBuffer->iBufferStatus; - - if(status == DProfilerSampleBuffer::BufferCopyAsap || status == DProfilerSampleBuffer::BufferFull || this->sampleNeeded == true) + if(status == DProfilerSampleBuffer::BufferCopyAsap || + status == DProfilerSampleBuffer::BufferFull || + this->sampleNeeded == true) { return true; } @@ -217,7 +219,7 @@ template -void DProfilerPriSampler::Sample() +void DProfilerPriSampler::Sample(TAny* aPtr) { LOGSTRING2("CProfilerPriSampler<%d>::Sample",BufferSize);