AkProfilingID.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /*******************************************************************************
  2. The content of this file includes portions of the AUDIOKINETIC Wwise Technology
  3. released in source code form as part of the SDK installer package.
  4. Commercial License Usage
  5. Licensees holding valid commercial licenses to the AUDIOKINETIC Wwise Technology
  6. may use this file in accordance with the end user license agreement provided
  7. with the software or, alternatively, in accordance with the terms contained in a
  8. written agreement between you and Audiokinetic Inc.
  9. Apache License Usage
  10. Alternatively, this file may be used under the Apache License, Version 2.0 (the
  11. "Apache License"); you may not use this file except in compliance with the
  12. Apache License. You may obtain a copy of the Apache License at
  13. http://www.apache.org/licenses/LICENSE-2.0.
  14. Unless required by applicable law or agreed to in writing, software distributed
  15. under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
  16. OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for
  17. the specific language governing permissions and limitations under the License.
  18. Copyright (c) 2023 Audiokinetic Inc.
  19. *******************************************************************************/
  20. #pragma once
  21. #include <AK/SoundEngine/Common/AkCommonDefs.h>
  22. namespace AK
  23. {
  24. namespace ProfilingID
  25. {
  26. enum ProfilingID
  27. {
  28. AudioFrameBoundary = 1,
  29. AudioVoiceStarvation,
  30. CAkLEngine_AnalyzeMixingGraph,
  31. CAkLEngine_PreprocessSources,
  32. CAkLEngine_VoiceTask,
  33. CAkLEngine_VoiceTaskParallelAsync,
  34. AkPerf_PostPipelineStats,
  35. CommunicationCentral_Process,
  36. JobMgr_WorkerFunction,
  37. SwVoice,
  38. HwVoice,
  39. BusTask,
  40. CheckValidSamples,
  41. SpatialAudio_Update,
  42. SpatialAudio_Dispatch,
  43. SpatialAudio_End,
  44. SpatialAudio_EmitterToListener,
  45. SpatialAudio_ListenerRayCasting,
  46. SpatialAudio_ListenerToPortal,
  47. SpatialAudio_EmitterToPortal,
  48. SpatialAudio_PortalToPortal,
  49. SpatialAudio_PortalRayCasting,
  50. CAkEdgePathSearch_Search,
  51. CAkStochasticReflectionEngine_ComputeRays,
  52. CAkStochasticReflectionEngine_TraceDiffractionRay,
  53. CAkStochasticReflectionEngine_TraceReflectionRay,
  54. CAkStochasticReflectionEngine_ValidateExistingPaths,
  55. CAkStochasticReflectionEngine_ValidatePaths,
  56. CAkStochasticReflectionEngine_ClearRays,
  57. AkAcousticRoom_PropagateSound,
  58. AkAcousticRoom_Update,
  59. AkSoundGeometry_SetGeometry,
  60. AkSoundGeometry_SetGeometryInstance,
  61. IODevice_TaskUpdate,
  62. IODevice_BatchOpen,
  63. IODevice_BatchRead,
  64. IODevice_BatchWrite,
  65. Num // Keep last!
  66. };
  67. enum MetaID
  68. {
  69. PipelineID = Num // Avoid ID space clash
  70. };
  71. #ifdef AK_IMPLEMENT_PROFILINGID_NAMES
  72. const char* s_aszNames[] =
  73. {
  74. "AK INVALID PROFILEID", // should never be used; 0 means no relevant profile id was provided
  75. "AK Audio Frame Boundary",
  76. "AK Audio Voice Starvation",
  77. "CAkLEngine::AnalyzeMixingGraph",
  78. "CAkLEngine::PreprocessSources",
  79. "CAkLEngine::VoiceTask",
  80. "CAkLEngine::VoiceTaskParallelAsync",
  81. "AkPerf::PostPipelineStats",
  82. "AK::CommunicationCentral::Process",
  83. "AkJobMgr::WorkerFunction",
  84. "AK SwVoice",
  85. "AK HwVoice",
  86. "AK BusTask",
  87. "AK CheckValidSamples",
  88. "AK::SpatialAudio::Update",
  89. "AK::SpatialAudio::Dispatch",
  90. "AK::SpatialAudio::End",
  91. "AK::SpatialAudio::EmitterToListener",
  92. "AK::SpatialAudio::ListenerRayCasting",
  93. "AK::SpatialAudio::ListenerToPortal",
  94. "AK::SpatialAudio::EmitterToPortal",
  95. "AK::SpatialAudio::PortalToPortal",
  96. "AK::SpatialAudio::PortalRayCasting",
  97. "CAkEdgePathSearch::Search",
  98. "CAkStochasticReflectionEngine::ComputeRays",
  99. "CAkStochasticReflectionEngine::TraceDiffractionRay",
  100. "CAkStochasticReflectionEngine::TraceReflectionRay",
  101. "CAkStochasticReflectionEngine::ValidateExistingPaths",
  102. "CAkStochasticReflectionEngine::ValidatePaths",
  103. "CAkStochasticReflectionEngine::ClearRays",
  104. "AkAcousticRoom::PropagateSound",
  105. "AkAcousticRoom::Update",
  106. "AkSoundGeometry::SetGeometry",
  107. "AkSoundGeometry::SetGeometryInstance",
  108. "AK IODevice TaskUpdate",
  109. "AK IODevice BatchOpen",
  110. "AK IODevice BatchRead",
  111. "AK IODevice BatchWrite",
  112. };
  113. static_assert((sizeof(s_aszNames) / sizeof(s_aszNames[0])) == AK::ProfilingID::Num, "ARRAYSIZE(AK::ProfilingID::s_aszNames) is not matching AK::ProfilingID::Num, make sure they are maintained at the same time.");
  114. #endif
  115. }
  116. }
  117. #define AKMAKECLASSIDFORPROFILING( _profilingid_ ) AKMAKECLASSID( AkPluginTypeNone, AKCOMPANYID_AUDIOKINETIC, _profilingid_ )