pxr-trace-dev 25.8__tar.gz → 26.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/.gitignore +10 -7
  2. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/CMakeLists.txt +6 -10
  3. pxr_trace_dev-26.8/NOTICE.txt +12 -0
  4. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/PKG-INFO +8 -8
  5. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/README.md +2 -2
  6. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/cmake/pxr-trace-config.cmake.in +4 -4
  7. pxr_trace_dev-26.8/conanfile.py +97 -0
  8. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/pyproject-dev.toml +13 -12
  9. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/pyproject.toml +13 -12
  10. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/CMakeLists.txt +5 -1
  11. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/aggregateNode.cpp +41 -16
  12. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/aggregateNode.h +22 -35
  13. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/aggregateTree.cpp +6 -6
  14. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/aggregateTree.h +7 -7
  15. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/aggregateTreeBuilder.cpp +77 -48
  16. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/aggregateTreeBuilder.h +9 -9
  17. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/api.h +4 -5
  18. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/category.cpp +3 -2
  19. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/category.h +7 -9
  20. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/collection.cpp +3 -3
  21. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/collection.h +9 -9
  22. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/collectionNotice.cpp +3 -3
  23. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/collectionNotice.h +7 -7
  24. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/collector.cpp +7 -7
  25. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/collector.h +11 -11
  26. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/concurrentList.h +5 -5
  27. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/counterAccumulator.cpp +4 -3
  28. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/counterAccumulator.h +7 -7
  29. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/dataBuffer.cpp +3 -3
  30. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/dataBuffer.h +6 -6
  31. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/detailedOverview.dox +2 -2
  32. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/dynamicKey.cpp +2 -2
  33. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/dynamicKey.h +6 -6
  34. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/event.cpp +13 -4
  35. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/event.h +14 -8
  36. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/eventContainer.cpp +6 -5
  37. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/eventContainer.h +7 -7
  38. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/eventData.cpp +3 -3
  39. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/eventData.h +7 -7
  40. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/eventList.cpp +3 -3
  41. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/eventList.h +9 -9
  42. pxr_trace_dev-26.8/src/pxr/trace/eventNode.cpp +74 -0
  43. pxr_trace_dev-26.8/src/pxr/trace/eventNode.h +150 -0
  44. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/eventTree.cpp +7 -7
  45. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/eventTree.h +9 -9
  46. pxr_trace_dev-26.8/src/pxr/trace/eventTreeBuilder.cpp +278 -0
  47. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/eventTreeBuilder.h +25 -26
  48. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/jsonSerialization.cpp +37 -23
  49. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/jsonSerialization.h +7 -7
  50. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/key.cpp +2 -2
  51. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/key.h +6 -6
  52. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/moduleDeps.cpp +5 -5
  53. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/overview.dox +2 -2
  54. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/pch.h +5 -16
  55. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/pxr.h.in +16 -5
  56. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/reporter.cpp +19 -29
  57. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/reporter.h +9 -15
  58. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/reporterBase.cpp +5 -5
  59. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/reporterBase.h +9 -9
  60. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/reporterDataSourceBase.cpp +3 -3
  61. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/reporterDataSourceBase.h +7 -7
  62. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/reporterDataSourceCollection.cpp +3 -3
  63. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/reporterDataSourceCollection.h +8 -8
  64. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/reporterDataSourceCollector.cpp +4 -4
  65. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/reporterDataSourceCollector.h +9 -9
  66. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/serialization.cpp +7 -7
  67. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/serialization.h +8 -9
  68. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/staticKeyData.cpp +3 -3
  69. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/staticKeyData.h +6 -6
  70. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/stringHash.h +5 -5
  71. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/threads.cpp +3 -3
  72. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/threads.h +6 -6
  73. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/pxr/trace/trace.h +28 -22
  74. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/python/__init__.py +1 -2
  75. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/python/__main__.py +1 -1
  76. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/python/module.cpp +1 -1
  77. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/python/wrapAggregateNode.cpp +3 -5
  78. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/python/wrapAggregateTree.cpp +1 -1
  79. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/python/wrapCollector.cpp +1 -1
  80. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/python/wrapReporter.cpp +1 -1
  81. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/python/wrapTestTrace.cpp +1 -1
  82. pxr_trace_dev-25.8/NOTICE.txt +0 -8
  83. pxr_trace_dev-25.8/src/pxr/trace/eventNode.cpp +0 -61
  84. pxr_trace_dev-25.8/src/pxr/trace/eventNode.h +0 -153
  85. pxr_trace_dev-25.8/src/pxr/trace/eventTreeBuilder.cpp +0 -295
  86. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/LICENSE.txt +0 -0
  87. {pxr_trace_dev-25.8 → pxr_trace_dev-26.8}/src/python/CMakeLists.txt +0 -0
@@ -47,6 +47,9 @@ build/
47
47
  # CMake
48
48
  cmake-build-*/
49
49
 
50
+ # Conan
51
+ CMakeUserPresets.json
52
+
50
53
  # Python byte-compiled / optimized / DLL files
51
54
  __pycache__/
52
55
  *.py[cod]
@@ -82,10 +85,10 @@ wheelhouse/
82
85
  .benchmarks/
83
86
 
84
87
  # Environments
85
- .env
86
- .venv
87
- env/
88
- venv/
89
- ENV/
90
- env.bak/
91
- venv.bak/
88
+ /.env
89
+ /.venv
90
+ /env/
91
+ /venv/
92
+ /ENV/
93
+ /env.bak/
94
+ /venv.bak/
@@ -1,18 +1,14 @@
1
- cmake_minimum_required(VERSION 3.23...4.1)
1
+ cmake_minimum_required(VERSION 3.23...4.2)
2
2
 
3
3
  # Default build type value.
4
4
  set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the build type")
5
5
 
6
6
  project(pxr-trace
7
- VERSION 0.25.8
7
+ VERSION 0.26.8
8
8
  HOMEPAGE_URL "https://github.com/untwine/pxr-trace"
9
9
  LANGUAGES C CXX
10
10
  )
11
11
 
12
- if (NOT "${CMAKE_CXX_STANDARD}")
13
- set(CMAKE_CXX_STANDARD 17 CACHE STRING "Default C++ standard")
14
- endif()
15
-
16
12
  set(CMAKE_CXX_STANDARD_REQUIRED ON)
17
13
  set(CMAKE_CXX_EXTENSIONS OFF)
18
14
 
@@ -48,14 +44,14 @@ if (WIN32)
48
44
  set(CMAKE_CXX_FLAGS "/wd4003 ${CMAKE_CXX_FLAGS}")
49
45
  endif()
50
46
 
51
- find_package(pxr-arch 0.25.8 REQUIRED)
52
- find_package(pxr-tf 0.25.8 REQUIRED)
53
- find_package(pxr-js 0.25.8 REQUIRED)
47
+ find_package(pxr-arch 0.26.8 EXACT REQUIRED)
48
+ find_package(pxr-tf 0.26.8 EXACT REQUIRED)
49
+ find_package(pxr-js 0.26.8 EXACT REQUIRED)
54
50
  find_package(TBB 2017.0 REQUIRED)
55
51
 
56
52
  if(BUILD_PYTHON_BINDINGS)
57
53
  add_compile_definitions(PXR_PYTHON_SUPPORT_ENABLED=1)
58
- find_package(pxr-boost 0.25.8 REQUIRED)
54
+ find_package(pxr-boost 0.26.8 EXACT REQUIRED)
59
55
 
60
56
  if (NOT CMAKE_INSTALL_PYTHON_LIBDIR)
61
57
  set(py_version "${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}")
@@ -0,0 +1,12 @@
1
+ Universal Scene Description
2
+ Copyright 2016 Pixar
3
+
4
+ All rights reserved.
5
+
6
+ This product includes software developed at:
7
+
8
+ Pixar (http://www.pixar.com/).
9
+
10
+ This repository is a modified, standalone redistribution of the 'trace'
11
+ library from Pixar's OpenUSD, restructured for independent building and
12
+ packaging. See the git history for details of the changes made.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pxr-trace-dev
3
- Version: 25.8
3
+ Version: 26.8
4
4
  Summary: C++ headers and CMake config for developing with pxr-trace
5
5
  Keywords: pixar,open-usd,dev
6
6
  License-File: LICENSE.txt
@@ -12,17 +12,17 @@ Classifier: Operating System :: MacOS :: MacOS X
12
12
  Classifier: Operating System :: Microsoft :: Windows :: Windows 10
13
13
  Project-URL: Repository, https://github.com/untwine/pxr-trace
14
14
  Requires-Python: >=3.8
15
- Requires-Dist: pxr-arch-dev==25.8.*
16
- Requires-Dist: pxr-tf-dev==25.8.*
17
- Requires-Dist: pxr-js-dev==25.8.*
18
- Requires-Dist: pxr-boost-dev==25.8.*
19
- Requires-Dist: pxr-tbb-dev==2022.2.0.*
15
+ Requires-Dist: pxr-arch-dev==26.8.*
16
+ Requires-Dist: pxr-tf-dev==26.8.*
17
+ Requires-Dist: pxr-js-dev==26.8.*
18
+ Requires-Dist: pxr-boost-dev==26.8.*
19
+ Requires-Dist: pxr-tbb-dev==2023.1.0.*
20
20
  Description-Content-Type: text/markdown
21
21
 
22
22
  # Pixar Trace
23
23
 
24
24
  [![PyPi version](https://img.shields.io/pypi/v/pxr-trace.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.python.org/pypi/pxr-trace)
25
- [![CMake](https://img.shields.io/badge/CMake-3.23...4.1-blue.svg?logo=CMake&logoColor=blue)](https://cmake.org)
25
+ [![CMake](https://img.shields.io/badge/CMake-3.23...4.2-blue.svg?logo=CMake&logoColor=blue)](https://cmake.org)
26
26
  [![Linux](https://github.com/untwine/pxr-trace/actions/workflows/linux.yml/badge.svg?branch=main)](https://github.com/untwine/pxr-trace/actions/workflows/linux.yml)
27
27
  [![MacOs](https://github.com/untwine/pxr-trace/actions/workflows/macos.yml/badge.svg?branch=main)](https://github.com/untwine/pxr-trace/actions/workflows/macos.yml)
28
28
  [![Windows](https://github.com/untwine/pxr-trace/actions/workflows/windows.yml/badge.svg?branch=main)](https://github.com/untwine/pxr-trace/actions/workflows/windows.yml)
@@ -38,4 +38,4 @@ It is regularly rebased over the "release" branch of the original
38
38
  [repository](https://github.com/PixarAnimationStudios/OpenUSD) to provide
39
39
  explicit divergence information from the latest updates and is currently
40
40
  synchronized with
41
- [v25.08](https://github.com/PixarAnimationStudios/OpenUSD/releases/tag/v25.08).
41
+ [v26.08](https://github.com/PixarAnimationStudios/OpenUSD/releases/tag/v26.08).
@@ -1,7 +1,7 @@
1
1
  # Pixar Trace
2
2
 
3
3
  [![PyPi version](https://img.shields.io/pypi/v/pxr-trace.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.python.org/pypi/pxr-trace)
4
- [![CMake](https://img.shields.io/badge/CMake-3.23...4.1-blue.svg?logo=CMake&logoColor=blue)](https://cmake.org)
4
+ [![CMake](https://img.shields.io/badge/CMake-3.23...4.2-blue.svg?logo=CMake&logoColor=blue)](https://cmake.org)
5
5
  [![Linux](https://github.com/untwine/pxr-trace/actions/workflows/linux.yml/badge.svg?branch=main)](https://github.com/untwine/pxr-trace/actions/workflows/linux.yml)
6
6
  [![MacOs](https://github.com/untwine/pxr-trace/actions/workflows/macos.yml/badge.svg?branch=main)](https://github.com/untwine/pxr-trace/actions/workflows/macos.yml)
7
7
  [![Windows](https://github.com/untwine/pxr-trace/actions/workflows/windows.yml/badge.svg?branch=main)](https://github.com/untwine/pxr-trace/actions/workflows/windows.yml)
@@ -17,4 +17,4 @@ It is regularly rebased over the "release" branch of the original
17
17
  [repository](https://github.com/PixarAnimationStudios/OpenUSD) to provide
18
18
  explicit divergence information from the latest updates and is currently
19
19
  synchronized with
20
- [v25.08](https://github.com/PixarAnimationStudios/OpenUSD/releases/tag/v25.08).
20
+ [v26.08](https://github.com/PixarAnimationStudios/OpenUSD/releases/tag/v26.08).
@@ -2,14 +2,14 @@ include(CMakeFindDependencyMacro)
2
2
 
3
3
  @PACKAGE_INIT@
4
4
 
5
- find_dependency(pxr-arch 0.25.8 REQUIRED)
6
- find_dependency(pxr-tf 0.25.8 REQUIRED)
7
- find_dependency(pxr-js 0.25.8 REQUIRED)
5
+ find_dependency(pxr-arch 0.26.8 EXACT REQUIRED)
6
+ find_dependency(pxr-tf 0.26.8 EXACT REQUIRED)
7
+ find_dependency(pxr-js 0.26.8 EXACT REQUIRED)
8
8
  find_dependency(TBB 2017.0 REQUIRED)
9
9
 
10
10
  set(_with_py_bindings "@BUILD_PYTHON_BINDINGS@")
11
11
  if(_with_py_bindings)
12
- find_dependency(pxr-boost 0.25.8 REQUIRED)
12
+ find_dependency(pxr-boost 0.26.8 EXACT REQUIRED)
13
13
  endif()
14
14
 
15
15
  include(${CMAKE_CURRENT_LIST_DIR}/pxr-trace-targets.cmake)
@@ -0,0 +1,97 @@
1
+ import os
2
+ import sys
3
+
4
+ from conan import ConanFile
5
+ from conan.errors import ConanInvalidConfiguration
6
+ from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
7
+ from conan.tools.files import copy
8
+
9
+
10
+ class PxrTraceConan(ConanFile):
11
+ name = "pxr-trace"
12
+ version = "26.8"
13
+ package_type = "library"
14
+ license = "LicenseRef-TOST-1.0"
15
+ homepage = "https://github.com/untwine/pxr-trace"
16
+ url = "https://github.com/untwine/pxr-trace"
17
+ description = "Performance tracking library used in OpenUSD"
18
+ topics = ("pixar", "open-usd")
19
+
20
+ settings = "os", "compiler", "build_type", "arch"
21
+ options = {
22
+ "shared": [True, False],
23
+ "fPIC": [True, False],
24
+ "build_tests": [True, False],
25
+ "precompiled_headers": [True, False],
26
+ "python_version": ["ANY", None],
27
+ }
28
+ default_options = {
29
+ "shared": True,
30
+ "fPIC": True,
31
+ "build_tests": False,
32
+ "precompiled_headers": False,
33
+ "python_version": None,
34
+ }
35
+
36
+ exports_sources = "CMakeLists.txt", "cmake/*", "src/*", "LICENSE.txt", "NOTICE.txt"
37
+
38
+ def config_options(self):
39
+ if self.settings.os == "Windows":
40
+ del self.options.fPIC
41
+
42
+ def configure(self):
43
+ if self.options.shared:
44
+ self.options.rm_safe("fPIC")
45
+ if self.options.python_version:
46
+ self.options["pxr-tf"].python_version = self.options.python_version
47
+ self.options["pxr-boost"].python_version = self.options.python_version
48
+
49
+ def requirements(self):
50
+ self.requires("pxr-arch/26.8")
51
+ self.requires("pxr-tf/26.8")
52
+ self.requires("pxr-js/26.8")
53
+ self.requires("onetbb/2023.1.0")
54
+ if self.options.python_version:
55
+ self.requires("pxr-boost/26.8")
56
+
57
+ def validate(self):
58
+ if self.options.python_version:
59
+ actual = f"{sys.version_info.major}.{sys.version_info.minor}"
60
+ if str(self.options.python_version) != actual:
61
+ raise ConanInvalidConfiguration(
62
+ f"python_version={self.options.python_version} requested, "
63
+ f"but Conan is running under Python {actual}."
64
+ )
65
+
66
+ def layout(self):
67
+ cmake_layout(self)
68
+
69
+ def generate(self):
70
+ tc = CMakeToolchain(self)
71
+ tc.variables["BUILD_TESTS"] = bool(self.options.build_tests)
72
+ tc.variables["BUILD_PYTHON_BINDINGS"] = bool(self.options.python_version)
73
+ tc.variables["ENABLE_PRECOMPILED_HEADERS"] = bool(self.options.precompiled_headers)
74
+ if self.options.python_version:
75
+ tc.variables["Python_EXECUTABLE"] = sys.executable.replace("\\", "/")
76
+ tc.generate()
77
+ deps = CMakeDeps(self)
78
+ deps.generate()
79
+
80
+ def build(self):
81
+ cmake = CMake(self)
82
+ cmake.configure()
83
+ cmake.build()
84
+
85
+ def package(self):
86
+ copy(self, "LICENSE.txt", self.source_folder,
87
+ os.path.join(self.package_folder, "licenses"))
88
+ copy(self, "NOTICE.txt", self.source_folder,
89
+ os.path.join(self.package_folder, "licenses"))
90
+ cmake = CMake(self)
91
+ cmake.install()
92
+
93
+ def package_info(self):
94
+ self.cpp_info.set_property("cmake_find_mode", "none")
95
+ self.cpp_info.set_property("system_package_version", "0.26.8")
96
+ self.cpp_info.builddirs = ["share/cmake/pxr-trace"]
97
+ self.cpp_info.libs = ["PxrTrace"]
@@ -1,17 +1,17 @@
1
1
  [build-system]
2
2
  requires = [
3
3
  "scikit-build-core",
4
- "pxr-arch-dev==25.8.*",
5
- "pxr-tf-dev==25.8.*",
6
- "pxr-js-dev==25.8.*",
7
- "pxr-boost-dev==25.8.*",
8
- "pxr-tbb-dev==2022.2.0.*"
4
+ "pxr-arch-dev==26.8.*",
5
+ "pxr-tf-dev==26.8.*",
6
+ "pxr-js-dev==26.8.*",
7
+ "pxr-boost-dev==26.8.*",
8
+ "pxr-tbb-dev==2023.1.0.*"
9
9
  ]
10
10
  build-backend = "scikit_build_core.build"
11
11
 
12
12
  [project]
13
13
  name = "pxr-trace-dev"
14
- version = "25.8"
14
+ version = "26.8"
15
15
  description = "C++ headers and CMake config for developing with pxr-trace"
16
16
  readme = "README.md"
17
17
  requires-python = ">=3.8"
@@ -25,23 +25,24 @@ classifiers = [
25
25
  "Operating System :: Microsoft :: Windows :: Windows 10",
26
26
  ]
27
27
  dependencies = [
28
- "pxr-arch-dev==25.8.*",
29
- "pxr-tf-dev==25.8.*",
30
- "pxr-js-dev==25.8.*",
31
- "pxr-boost-dev==25.8.*",
32
- "pxr-tbb-dev==2022.2.0.*"
28
+ "pxr-arch-dev==26.8.*",
29
+ "pxr-tf-dev==26.8.*",
30
+ "pxr-js-dev==26.8.*",
31
+ "pxr-boost-dev==26.8.*",
32
+ "pxr-tbb-dev==2023.1.0.*"
33
33
  ]
34
34
 
35
35
  [project.urls]
36
36
  Repository = "https://github.com/untwine/pxr-trace"
37
37
 
38
38
  [tool.scikit-build]
39
- cmake.version = ">=3.23,<4.2"
39
+ cmake.version = ">=3.23,<4.3"
40
40
  cmake.args = [
41
41
  "-DBUILD_TESTS=OFF",
42
42
  "-DBUILD_SHARED_LIBS=ON",
43
43
  "-DBUILD_PYTHON_BINDINGS=ON",
44
44
  "-DCMAKE_INSTALL_LIBDIR=pxr-trace/lib",
45
+ "-DCMAKE_INSTALL_BINDIR=pxr-trace/lib",
45
46
  "-DCMAKE_INSTALL_INCLUDEDIR=pxr-trace/include",
46
47
  "-DCMAKE_INSTALL_DATAROOTDIR=pxr-trace",
47
48
  "-DCMAKE_INSTALL_PYTHON_LIBDIR=pxr-trace/lib/python",
@@ -1,17 +1,17 @@
1
1
  [build-system]
2
2
  requires = [
3
3
  "scikit-build-core",
4
- "pxr-arch-dev==25.8.*",
5
- "pxr-tf-dev==25.8.*",
6
- "pxr-js-dev==25.8.*",
7
- "pxr-boost-dev==25.8.*",
8
- "pxr-tbb-dev==2022.2.0.*"
4
+ "pxr-arch-dev==26.8.*",
5
+ "pxr-tf-dev==26.8.*",
6
+ "pxr-js-dev==26.8.*",
7
+ "pxr-boost-dev==26.8.*",
8
+ "pxr-tbb-dev==2023.1.0.*"
9
9
  ]
10
10
  build-backend = "scikit_build_core.build"
11
11
 
12
12
  [project]
13
13
  name = "pxr-trace-dev"
14
- version = "25.8"
14
+ version = "26.8"
15
15
  description = "C++ headers and CMake config for developing with pxr-trace"
16
16
  readme = "README.md"
17
17
  requires-python = ">=3.8"
@@ -25,23 +25,24 @@ classifiers = [
25
25
  "Operating System :: Microsoft :: Windows :: Windows 10",
26
26
  ]
27
27
  dependencies = [
28
- "pxr-arch-dev==25.8.*",
29
- "pxr-tf-dev==25.8.*",
30
- "pxr-js-dev==25.8.*",
31
- "pxr-boost-dev==25.8.*",
32
- "pxr-tbb-dev==2022.2.0.*"
28
+ "pxr-arch-dev==26.8.*",
29
+ "pxr-tf-dev==26.8.*",
30
+ "pxr-js-dev==26.8.*",
31
+ "pxr-boost-dev==26.8.*",
32
+ "pxr-tbb-dev==2023.1.0.*"
33
33
  ]
34
34
 
35
35
  [project.urls]
36
36
  Repository = "https://github.com/untwine/pxr-trace"
37
37
 
38
38
  [tool.scikit-build]
39
- cmake.version = ">=3.23,<4.2"
39
+ cmake.version = ">=3.23,<4.3"
40
40
  cmake.args = [
41
41
  "-DBUILD_TESTS=OFF",
42
42
  "-DBUILD_SHARED_LIBS=ON",
43
43
  "-DBUILD_PYTHON_BINDINGS=ON",
44
44
  "-DCMAKE_INSTALL_LIBDIR=pxr-trace/lib",
45
+ "-DCMAKE_INSTALL_BINDIR=pxr-trace/lib",
45
46
  "-DCMAKE_INSTALL_INCLUDEDIR=pxr-trace/include",
46
47
  "-DCMAKE_INSTALL_DATAROOTDIR=pxr-trace",
47
48
  "-DCMAKE_INSTALL_PYTHON_LIBDIR=pxr-trace/lib/python",
@@ -48,6 +48,10 @@ target_link_libraries(trace
48
48
  TBB::tbb
49
49
  )
50
50
 
51
+ if(NOT WIN32 AND NOT SKBUILD)
52
+ set_target_properties(trace PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)
53
+ endif()
54
+
51
55
  if(BUILD_PYTHON_BINDINGS)
52
56
  target_sources(trace
53
57
  PRIVATE
@@ -120,7 +124,7 @@ target_sources(trace
120
124
  install(
121
125
  TARGETS trace EXPORT ${PROJECT_NAME}
122
126
  FILE_SET public_headers
123
- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
127
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
124
128
  LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
125
129
  ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
126
130
  )
@@ -1,25 +1,24 @@
1
+ //
1
2
  // Copyright 2018 Pixar
2
3
  //
3
4
  // Licensed under the terms set forth in the LICENSE.txt file available at
4
5
  // https://openusd.org/license.
5
6
  //
6
- // Modified by Jeremy Retailleau.
7
7
 
8
- #include "pxr/trace/aggregateNode.h"
8
+ #include <pxr/trace/aggregateNode.h>
9
9
 
10
- #include "pxr/trace/pxr.h"
10
+ #include <pxr/trace/pxr.h>
11
11
 
12
12
  #include <vector>
13
13
 
14
14
  TRACE_NAMESPACE_OPEN_SCOPE
15
15
 
16
16
  TraceAggregateNodeRefPtr
17
- TraceAggregateNode::Append(Id id, const TfToken &key,
17
+ TraceAggregateNode::Append(const TfToken &key,
18
18
  TimeStamp ts, int c, int xc)
19
19
  {
20
- TraceAggregateNodeRefPtr n = GetChild(key);
21
- if (n) {
22
- n->_id = id;
20
+ TraceAggregateNodeRefPtr nRef = GetChild(key);
21
+ if (TraceAggregateNode *n = get_pointer(nRef)) {
23
22
  n->_ts += ts;
24
23
  n->_count += c;
25
24
  n->_recursiveCount += c;
@@ -28,8 +27,8 @@ TraceAggregateNode::Append(Id id, const TfToken &key,
28
27
  n->_recursiveExclusiveTs += ts;
29
28
  }
30
29
  else {
31
- n = TraceAggregateNode::New(id,key,ts,c,xc);
32
- _children.push_back(n);
30
+ nRef = TraceAggregateNode::New(key,ts,c,xc);
31
+ _children.push_back(nRef);
33
32
  _childrenByKey[key] = _children.size() - 1;
34
33
  }
35
34
 
@@ -38,14 +37,36 @@ TraceAggregateNode::Append(Id id, const TfToken &key,
38
37
  _recursiveExclusiveTs =
39
38
  (_recursiveExclusiveTs >= ts) ? _recursiveExclusiveTs - ts : 0;
40
39
 
41
- return n;
40
+ return nRef;
41
+ }
42
+
43
+ void
44
+ TraceAggregateNode::AppendBlind(const TfToken &key,
45
+ TimeStamp ts, int c, int xc)
46
+ {
47
+ if (TraceAggregateNode *n = _GetChildRaw(key)) {
48
+ n->_ts += ts;
49
+ n->_count += c;
50
+ n->_recursiveCount += c;
51
+ n->_exclusiveCount += xc;
52
+ n->_exclusiveTs += ts;
53
+ n->_recursiveExclusiveTs += ts;
54
+ }
55
+ else {
56
+ _children.push_back(TraceAggregateNode::New(key,ts,c,xc));
57
+ _childrenByKey[key] = _children.size() - 1;
58
+ }
59
+
60
+ // Update our exclusive time to discount our new child's time.
61
+ _exclusiveTs = (_exclusiveTs >= ts) ? _exclusiveTs - ts : 0;
62
+ _recursiveExclusiveTs =
63
+ (_recursiveExclusiveTs >= ts) ? _recursiveExclusiveTs - ts : 0;
42
64
  }
43
65
 
44
66
  void
45
67
  TraceAggregateNode::Append(TraceAggregateNodeRefPtr child) {
46
68
  TraceAggregateNodeRefPtr n = GetChild(child->GetKey());
47
69
  if (n) {
48
- n->_id = child->_id;
49
70
  n->_ts += child->_ts;
50
71
  n->_count += child->_count;
51
72
  n->_recursiveCount += child->_count;
@@ -108,14 +129,18 @@ TraceAggregateNode::GetExclusiveCounterValue(int index) const
108
129
 
109
130
  TraceAggregateNodeRefPtr
110
131
  TraceAggregateNode::GetChild(const TfToken &key)
132
+ {
133
+ return TraceAggregateNodeRefPtr { _GetChildRaw(key) };
134
+ }
135
+
136
+ TraceAggregateNode *
137
+ TraceAggregateNode::_GetChildRaw(const TfToken &key)
111
138
  {
112
139
  _ChildDictionary::const_iterator i = _childrenByKey.find(key);
113
140
  if (i != _childrenByKey.end()) {
114
- return _children[i->second];
115
- }
116
- else {
117
- return TraceAggregateNodeRefPtr(0);
141
+ return get_pointer(_children[i->second]);
118
142
  }
143
+ return nullptr;
119
144
  }
120
145
 
121
146
  void
@@ -332,7 +357,7 @@ TraceAggregateNode::_MergeRecursive(const TraceAggregateNodeRefPtr &node)
332
357
  if (!n)
333
358
  {
334
359
  // Create an empty node to merge with.
335
- n = TraceAggregateNode::New( child->GetId(), child->GetKey(),
360
+ n = TraceAggregateNode::New(child->GetKey(),
336
361
  child->GetInclusiveTime(),
337
362
  0, child->GetExclusiveCount() );
338
363
 
@@ -1,18 +1,18 @@
1
+ //
1
2
  // Copyright 2018 Pixar
2
3
  //
3
4
  // Licensed under the terms set forth in the LICENSE.txt file available at
4
5
  // https://openusd.org/license.
5
6
  //
6
- // Modified by Jeremy Retailleau.
7
7
 
8
- #ifndef PXR_TRACE_AGGREGATE_NODE_H
9
- #define PXR_TRACE_AGGREGATE_NODE_H
8
+ #ifndef PXR_BASE_TRACE_AGGREGATE_NODE_H
9
+ #define PXR_BASE_TRACE_AGGREGATE_NODE_H
10
10
 
11
- #include "pxr/trace/pxr.h"
11
+ #include <pxr/trace/pxr.h>
12
12
 
13
- #include "pxr/trace/api.h"
14
- #include "pxr/trace/event.h"
15
- #include "pxr/trace/threads.h"
13
+ #include <pxr/trace/api.h>
14
+ #include <pxr/trace/event.h>
15
+ #include <pxr/trace/threads.h>
16
16
 
17
17
  #include <pxr/tf/refBase.h>
18
18
  #include <pxr/tf/refPtr.h>
@@ -46,41 +46,28 @@ public:
46
46
 
47
47
  using TimeStamp = TraceEvent::TimeStamp;
48
48
 
49
- // This class is only used for validity checks.
50
- // FIXME: This class should be removed.
51
- class Id
52
- {
53
- public:
54
- Id() : _valid(false) {}
55
- Id(const TraceThreadId&) : _valid(true) {}
56
- bool IsValid() const { return _valid; }
57
- private:
58
- bool _valid;
59
- };
60
-
61
49
  static ThisRefPtr New() {
62
- return This::New(Id(), TfToken("root"), 0, 0);
50
+ return This::New(TfToken("root"), 0, 0);
63
51
  }
64
52
 
65
- static ThisRefPtr New(const Id &id,
66
- const TfToken &key,
53
+ static ThisRefPtr New(const TfToken &key,
67
54
  const TimeStamp ts,
68
55
  const int count = 1,
69
56
  const int exclusiveCount = 1) {
70
- return TfCreateRefPtr(new This(id, key, ts, count, exclusiveCount));
57
+ return TfCreateRefPtr(new This(key, ts, count, exclusiveCount));
71
58
  }
72
59
 
73
60
  TRACE_API TraceAggregateNodeRefPtr
74
- Append(Id id, const TfToken &key, TimeStamp ts,
75
- int c = 1, int xc = 1);
61
+ Append(const TfToken &key, TimeStamp ts,int c = 1, int xc = 1);
62
+
63
+ // Same as Append() but return nothing.
64
+ TRACE_API void
65
+ AppendBlind(const TfToken &key, TimeStamp ts, int c = 1, int xc = 1);
76
66
 
77
67
  TRACE_API void Append(TraceAggregateNodeRefPtr child);
78
68
 
79
69
  /// Returns the node's key.
80
- TfToken GetKey() { return _key;}
81
-
82
- /// Returns the node's id.
83
- const Id &GetId() { return _id;}
70
+ const TfToken& GetKey() { return _key;}
84
71
 
85
72
  /// \name Profile Data Accessors
86
73
  /// @{
@@ -191,9 +178,9 @@ public:
191
178
 
192
179
  private:
193
180
 
194
- TraceAggregateNode(const Id &id, const TfToken &key, TimeStamp ts,
181
+ TraceAggregateNode(const TfToken &key, TimeStamp ts,
195
182
  int count, int exclusiveCount) :
196
- _id(id), _key(key), _ts(ts), _exclusiveTs(ts),
183
+ _key(key), _ts(ts), _exclusiveTs(ts),
197
184
  _count(count), _exclusiveCount(exclusiveCount),
198
185
  _recursiveCount(count), _recursiveExclusiveTs(ts), _expanded(false),
199
186
  _isRecursionMarker(false), _isRecursionHead(false),
@@ -205,9 +192,9 @@ private:
205
192
 
206
193
  void _SetAsRecursionMarker(TraceAggregateNodePtr parent);
207
194
 
208
- Id _id;
209
- TfToken _key;
210
-
195
+ TraceAggregateNode *_GetChildRaw(const TfToken &key);
196
+
197
+ const TfToken _key;
211
198
  TimeStamp _ts;
212
199
  TimeStamp _exclusiveTs;
213
200
  int _count;
@@ -257,4 +244,4 @@ private:
257
244
 
258
245
  TRACE_NAMESPACE_CLOSE_SCOPE
259
246
 
260
- #endif // PXR_TRACE_AGGREGATE_NODE_H
247
+ #endif // PXR_BASE_TRACE_AGGREGATE_NODE_H
@@ -1,17 +1,17 @@
1
+ //
1
2
  // Copyright 2018 Pixar
2
3
  //
3
4
  // Licensed under the terms set forth in the LICENSE.txt file available at
4
5
  // https://openusd.org/license.
5
6
  //
6
- // Modified by Jeremy Retailleau.
7
7
 
8
- #include "pxr/trace/aggregateTree.h"
8
+ #include <pxr/trace/aggregateTree.h>
9
9
 
10
- #include "pxr/trace/pxr.h"
10
+ #include <pxr/trace/pxr.h>
11
11
 
12
- #include "pxr/trace/aggregateTreeBuilder.h"
13
- #include "pxr/trace/collection.h"
14
- #include "pxr/trace/eventTree.h"
12
+ #include <pxr/trace/aggregateTreeBuilder.h>
13
+ #include <pxr/trace/collection.h>
14
+ #include <pxr/trace/eventTree.h>
15
15
 
16
16
  #include <stack>
17
17
 
@@ -1,17 +1,17 @@
1
+ //
1
2
  // Copyright 2018 Pixar
2
3
  //
3
4
  // Licensed under the terms set forth in the LICENSE.txt file available at
4
5
  // https://openusd.org/license.
5
6
  //
6
- // Modified by Jeremy Retailleau.
7
7
 
8
- #ifndef PXR_TRACE_AGGREGATE_TREE_H
9
- #define PXR_TRACE_AGGREGATE_TREE_H
8
+ #ifndef PXR_BASE_TRACE_AGGREGATE_TREE_H
9
+ #define PXR_BASE_TRACE_AGGREGATE_TREE_H
10
10
 
11
- #include "pxr/trace/pxr.h"
11
+ #include <pxr/trace/pxr.h>
12
12
 
13
- #include "pxr/trace/api.h"
14
- #include "pxr/trace/aggregateNode.h"
13
+ #include <pxr/trace/api.h>
14
+ #include <pxr/trace/aggregateNode.h>
15
15
 
16
16
  TRACE_NAMESPACE_OPEN_SCOPE
17
17
 
@@ -89,4 +89,4 @@ private:
89
89
 
90
90
  TRACE_NAMESPACE_CLOSE_SCOPE
91
91
 
92
- #endif // PXR_TRACE_AGGREGATE_TREE_H
92
+ #endif // PXR_BASE_TRACE_AGGREGATE_TREE_H