VirtualBox

Ignore:
Timestamp:
Oct 6, 2010 10:47:09 AM (14 years ago)
Author:
vboxsync
Message:

crOpenGL: another perf counter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c

    r32420 r32940  
    2525#include <iprt/assert.h>
    2626
     27#ifdef VBOXCR_LOGFPS
     28#include <iprt/timer.h>
     29#endif
     30
    2731/**
    2832 * \mainpage CrServerLib
     
    380384    CRClient *pClient = NULL;
    381385    int32_t i;
     386#ifdef VBOXCR_LOGFPS
     387    uint64_t tstart, tend;
     388#endif
    382389
    383390    /*crDebug("=>crServer: ClientWrite u32ClientID=%d", u32ClientID);*/
     
    395402
    396403    if (!pClient->conn->vMajor) return VERR_NOT_SUPPORTED;
     404
     405#ifdef VBOXCR_LOGFPS
     406    tstart = RTTimeNanoTS();
     407#endif
    397408
    398409    CRASSERT(pBuffer);
     
    452463    CRASSERT(!pClient->conn->allow_redir_ptr || crNetNumMessages(pClient->conn)==0);
    453464
     465#ifdef VBOXCR_LOGFPS
     466    tend = RTTimeNanoTS();
     467    pClient->timeUsed += tend-tstart;
     468#endif
    454469    /*crDebug("<=crServer: ClientWrite u32ClientID=%d", u32ClientID);*/
    455470
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette