perfsrv/memspy/Driver/Kernel/Source/MemSpyDriverInspectedProcess.cpp
changeset 62 1c2bb2fc7c87
parent 51 98307c651589
equal deleted inserted replaced
56:aa2539c91954 62:1c2bb2fc7c87
   100             // Get size of all stacks (user & supervsior) for process. Also
   100             // Get size of all stacks (user & supervsior) for process. Also
   101             // updates iUserThreadStackSize with the current size of just
   101             // updates iUserThreadStackSize with the current size of just
   102             // the user-side thread stacks.
   102             // the user-side thread stacks.
   103             iInfoCurrent.iMemoryStack = StackSize( *aProcess );
   103             iInfoCurrent.iMemoryStack = StackSize( *aProcess );
   104         
   104         
   105             // Request events
   105             // Request events 
   106             EventMonitor().RequestEvents( *this );
   106             // Ignore error since it can only be KErrAlreadyExists or KErrNone
       
   107             (void) EventMonitor().RequestEvents( *this );
   107         
   108         
   108             // Find initial chunks that are mapped into process
   109             // Find initial chunks that are mapped into process
   109             FindChunks( *aProcess );
   110             FindChunks( *aProcess );
   110         
   111         
   111             // Indicate that we have data waiting for client. This will
   112             // Indicate that we have data waiting for client. This will
   112             // cause the client's RS to be completed as soon as it 
   113             // cause the client's RS to be completed as soon as it 
   113             // registers with us...
   114             // registers with us...
   114             UpdateStatistics();
   115             (void) UpdateStatistics();// Ignore return since we don't care if it's different or not            
   115             CompleteClientsRequest( KErrNone, &iInfoCurrent );
   116             CompleteClientsRequest( KErrNone, &iInfoCurrent );  
   116             }
   117             }
   117         }
   118         }
   118     //
   119     //
   119     TRACE( Kern::Printf("DMemSpyInspectedProcess::Open() - END - this: 0x%08x, error: %d", this, error ));
   120     TRACE( Kern::Printf("DMemSpyInspectedProcess::Open() - END - this: 0x%08x, error: %d", this, error ));
   120     return error;
   121     return error;