Changeset 7010 for trunk/src/kernel32


Ignore:
Timestamp:
Oct 11, 2001, 3:00:12 AM (24 years ago)
Author:
phaller
Message:

added ODIN perfview profiler

Location:
trunk/src/kernel32
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/KERNEL32.DEF

    r6934 r7010  
    1 ; $Id: KERNEL32.DEF,v 1.124 2001-10-03 13:48:56 sandervl Exp $
     1; $Id: KERNEL32.DEF,v 1.125 2001-10-11 00:59:42 phaller Exp $
    22
    33;Basis is Windows95 KERNEL32
     
    11991199    _dbg_IncThreadCallDepth@0                                     @3101 NONAME
    12001200    _dbg_DecThreadCallDepth@0                                     @3102 NONAME
     1201    PerfView_RegisterCall                                         @3103 NONAME
     1202    PerfView_DumpProfile                                          @3104 NONAME
     1203    PerfView_Write                                                @3105 NONAME
  • trunk/src/kernel32/ccollection.cpp

    r5848 r7010  
    1 /* $Id: ccollection.cpp,v 1.6 2001-06-01 01:21:13 phaller Exp $ */
     1/* $Id: ccollection.cpp,v 1.7 2001-10-11 00:59:43 phaller Exp $ */
    22
    33/*
     
    780780
    781781
     782int CHashtableLookup::getElementMap(PHASHTABLEENTRY pBuffer)
     783{
     784  int iIndex = 0;
     785 
     786  // iterate over all registered entries and dump them to the buffer
     787  // giving the caller direct access to the hashtable internals.
     788  for (int i = 0;
     789       i < iSize;
     790       i++)
     791  {
     792    // check if slot was occupied
     793    if (parrLists[i] != NULL)
     794    {
     795      // walk along any entry in that linear list
     796      PLINEARLISTENTRY pLLE = parrLists[i]->getFirst();
     797     
     798      while (pLLE)
     799      {
     800        PHASHTABLEENTRY pHTE = (PHASHTABLEENTRY)pLLE->pObject;
     801        memcpy(&pBuffer[iIndex], pHTE, sizeof( HASHTABLEENTRY ) );
     802        iIndex++;
     803       
     804        pLLE = parrLists[i]->getNext(pLLE);
     805      }
     806    }
     807  }
     808 
     809  // return number of elements copied
     810  return iIndex;
     811}
     812
     813
    782814void  CHashtableLookup::setSize0(int iNewSize)
    783815{
  • trunk/src/kernel32/kernel32.mak

    r6892 r7010  
    1 # $Id: kernel32.mak,v 1.14 2001-09-30 08:50:59 bird Exp $
     1# $Id: kernel32.mak,v 1.15 2001-10-11 00:59:44 phaller Exp $
    22
    33#
     
    2525$(OBJDIR)\kernel32.obj \
    2626$(OBJDIR)\ccollection.obj \
     27$(OBJDIR)\perfview.obj \
    2728$(OBJDIR)\kobjects.obj \
    2829$(OBJDIR)\console.obj \
  • trunk/src/kernel32/wprocess.cpp

    r6831 r7010  
    1 /* $Id: wprocess.cpp,v 1.134 2001-09-26 16:02:54 phaller Exp $ */
     1/* $Id: wprocess.cpp,v 1.135 2001-10-11 01:00:12 phaller Exp $ */
    22
    33/*
     
    429429    }
    430430    threadListMutex.leave();
    431 
     431 
     432 
     433#ifdef PROFILE
     434  // Note: after this point we do not expect any more Win32-API calls,
     435  // so this is probably the best time to dump the gathered profiling
     436  // information
     437  PerfView_Write();
     438#endif /* PROFILE */
     439 
     440
     441 
    432442    //Restore original OS/2 TIB selector
    433443    DestroyTIB();
Note: See TracChangeset for help on using the changeset viewer.