MCPcopy Create free account
hub / github.com/bwapi/bwapi / spiGetPerformanceData

Function spiGetPerformanceData

bwapi/SNP_DirectIP/SNP/SNPModule.cpp:553–577  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

551
552 //------------------------------------------------------------------------------------------------------------------------------------
553 BOOL __stdcall spiGetPerformanceData(DWORD dwType, DWORD *dwResult, int a3, int a4)
554 {
555 DropMessage(0, "spiGetPerformanceData");
556 /*
557 // Returns performance data in dwResult
558 switch ( dwType )
559 {
560 case 12: // Total number of calls made to sendto
561 *dwResult = gdwSendCalls;
562 return true;
563 case 13: // Total number of calls made to recvfrom
564 *dwResult = gdwRecvCalls;
565 return true;
566 case 14: // Total number of bytes sent using sendto
567 *dwResult = gdwSendBytes;
568 return true;
569 case 15: // Total number of bytes received using recvfrom
570 *dwResult = gdwRecvBytes;
571 return true;
572 default:
573 return false;
574 }
575 */
576 return FALSE;
577 }
578
579 //------------------------------------------------------------------------------------------------------------------------------------
580 BOOL __stdcall spiInitializeDevice(int a1, void *a2, void *a3, DWORD *a4, void *a5)

Callers

nothing calls this directly

Calls 1

DropMessageFunction · 0.85

Tested by

no test coverage detected