BVB Source Codes

CRYENGINE Show StatsSizer.cpp Source code

Return Download CRYENGINE: download StatsSizer.cpp Source code - Download CRYENGINE Source code - Type:.cpp
  1. // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
  2.  
  3. /*************************************************************************
  4.    -------------------------------------------------------------------------
  5.    File name:           StatsSizer.cpp
  6.    Version:                     v1.00
  7.    Created:                     23/10/2009 by Sergey Mikhtonyuk
  8.    Description:  Definition of CStatsSizer
  9.    -------------------------------------------------------------------------
  10.    History:
  11. *************************************************************************/
  12. #include "StdAfx.h"
  13. #include "StatsSizer.h"
  14.  
  15. //////////////////////////////////////////////////////////////////////////
  16. // CStatsSizer
  17. //////////////////////////////////////////////////////////////////////////
  18.  
  19. CStatsSizer::CStatsSizer()
  20.         : m_size(0), m_count(0)
  21. {}
  22.  
  23. //////////////////////////////////////////////////////////////////////////
  24.  
  25. void CStatsSizer::Release()
  26. {}
  27.  
  28. //////////////////////////////////////////////////////////////////////////
  29. void CStatsSizer::Reset()
  30. {}
  31.  
  32. //////////////////////////////////////////////////////////////////////////
  33. void CStatsSizer::End()
  34. {}
  35.  
  36. //////////////////////////////////////////////////////////////////////////
  37.  
  38. size_t CStatsSizer::GetTotalSize()
  39. { return m_size; }
  40.  
  41. //////////////////////////////////////////////////////////////////////////
  42.  
  43. size_t CStatsSizer::GetObjectCount()
  44. { return m_count; }
  45.  
  46. //////////////////////////////////////////////////////////////////////////
  47.  
  48. bool CStatsSizer::AddObject(const void* pIdentifier, size_t nSizeBytes, int nCount)
  49. {
  50.         m_size += nSizeBytes;
  51.         m_count++;
  52.         return true;
  53. }
  54.  
  55. //////////////////////////////////////////////////////////////////////////
  56.  
  57. static NullResCollector s_nullCollector;
  58.  
  59. IResourceCollector* CStatsSizer::GetResourceCollector()
  60. {
  61.         return &s_nullCollector;
  62. }
  63.  
  64. //////////////////////////////////////////////////////////////////////////
  65.  
  66. void CStatsSizer::SetResourceCollector(IResourceCollector*)
  67. {
  68. }
  69.  
  70. //////////////////////////////////////////////////////////////////////////
  71.  
  72. void CStatsSizer::Push(const char* szComponentName)
  73. {}
  74.  
  75. //////////////////////////////////////////////////////////////////////////
  76.  
  77. void CStatsSizer::PushSubcomponent(const char* szSubcomponentName)
  78. {}
  79.  
  80. //////////////////////////////////////////////////////////////////////////
  81.  
  82. void CStatsSizer::Pop()
  83. {}
  84.  
  85. //////////////////////////////////////////////////////////////////////////
  86.  
downloadStatsSizer.cpp Source code - Download CRYENGINE Source code
Related Source Codes/Software:
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top