perfsrv/piprofiler/plugins/GeneralsPlugin/inc/PriSamplerImpl.h
changeset 62 1c2bb2fc7c87
parent 51 98307c651589
--- 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 <int BufferSize> 
 TBool DProfilerPriSampler<BufferSize>::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 <int BufferSize>
-void DProfilerPriSampler<BufferSize>::Sample()
+void DProfilerPriSampler<BufferSize>::Sample(TAny* aPtr)
     {
 	LOGSTRING2("CProfilerPriSampler<%d>::Sample",BufferSize);