perfsrv/piprofiler/plugins/GeneralsPlugin/inc/IttEventHandler.h
changeset 62 1c2bb2fc7c87
parent 51 98307c651589
equal deleted inserted replaced
56:aa2539c91954 62:1c2bb2fc7c87
    39     TInt Start();
    39     TInt Start();
    40     TInt Stop();
    40     TInt Stop();
    41     TBool Tracking() {return iTracking;}
    41     TBool Tracking() {return iTracking;}
    42        
    42        
    43     TBool SampleNeeded();
    43     TBool SampleNeeded();
       
    44     void SampleHandled();
    44     
    45     
    45 private:
    46 private:
    46     static TUint EventHandler(TKernelEvent aEvent, TAny* a1, TAny* a2, TAny* aThis);
    47     static TUint EventHandler(TKernelEvent aEvent, TAny* a1, TAny* a2, TAny* aThis);
    47     TUint HandleEvent(TKernelEvent aType, TAny* a1, TAny* a2);
    48     TUint HandleEvent(TKernelEvent aType, TAny* a1, TAny* a2);
    48     // handle code segments
    49     // handle code segments
    53     /** Lock serialising calls to event handler */
    54     /** Lock serialising calls to event handler */
    54         DMutex*     iLock;
    55         DMutex*     iLock;
    55         TBool       iTracking;
    56         TBool       iTracking;
    56         DProfilerSampleBuffer*  iSampleBuffer;
    57         DProfilerSampleBuffer*  iSampleBuffer;
    57 
    58 
    58         TUint32     iCount;        
    59         //TUint32     iCount;        
    59         
    60         //TUint32     iPreviousCount;
    60         TUint8      iSample[KITTBufferSize];
    61         TUint8      iSample[KITTBufferSize];
    61         TPtr8       iSampleDescriptor;
    62         TPtr8       iSampleDescriptor;
    62         TProfilerGppSamplerData*     gppSamplerData;
    63         TProfilerGppSamplerData*     gppSamplerData;
       
    64         TBool       iSampleAvailable;
    63     };
    65     };
    64 
    66 
    65 #endif  //__PI_ITT_EVENT_HANDLER__
    67 #endif  //__PI_ITT_EVENT_HANDLER__