Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1022 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: vmpi_distribute_work sends events to this module, and this module
  4. // can track the events or display them graphically for debugging.
  5. //
  6. //=============================================================================//
  7. #ifndef VMPI_DISTRIBUTE_TRACKER_H
  8. #define VMPI_DISTRIBUTE_TRACKER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. // If bDebugMode is set, then it will remember all the VMPI events
  13. // in case you call VMPITracker_WriteDebugFile.
  14. void VMPITracker_Start( int nWorkUnits );
  15. void VMPITracker_WorkUnitSentToWorker( int iWorkUnit, int iWorker );
  16. void VMPITracker_WorkUnitStarted( int iWorkUnit, int iWorker );
  17. void VMPITracker_WorkUnitCompleted( int iWorkUnit, int iWorker );
  18. void VMPITracker_End();
  19. // This will bring up a little menu they can use to
  20. // write a debug file.
  21. void VMPITracker_HandleDebugKeypresses();
  22. bool VMPITracker_WriteDebugFile( const char *pFilename );
  23. #endif // VMPI_DISTRIBUTE_TRACKER_H