helia-profiler 0.1.1__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 (256) hide show
  1. helia_profiler-0.1.1/LICENSE +201 -0
  2. helia_profiler-0.1.1/PKG-INFO +129 -0
  3. helia_profiler-0.1.1/README.md +85 -0
  4. helia_profiler-0.1.1/THIRD_PARTY_NOTICES.md +15 -0
  5. helia_profiler-0.1.1/pyproject.toml +125 -0
  6. helia_profiler-0.1.1/setup.cfg +4 -0
  7. helia_profiler-0.1.1/src/helia_profiler/__init__.py +251 -0
  8. helia_profiler-0.1.1/src/helia_profiler/_version.py +1 -0
  9. helia_profiler-0.1.1/src/helia_profiler/api.py +59 -0
  10. helia_profiler-0.1.1/src/helia_profiler/capture/__init__.py +605 -0
  11. helia_profiler-0.1.1/src/helia_profiler/capture/parser.py +589 -0
  12. helia_profiler-0.1.1/src/helia_profiler/capture/power_terminal.py +320 -0
  13. helia_profiler-0.1.1/src/helia_profiler/capture/readiness.py +72 -0
  14. helia_profiler-0.1.1/src/helia_profiler/capture/rtt_symbol.py +138 -0
  15. helia_profiler-0.1.1/src/helia_profiler/cli/__init__.py +18 -0
  16. helia_profiler-0.1.1/src/helia_profiler/cli/analyze_cmd.py +153 -0
  17. helia_profiler-0.1.1/src/helia_profiler/cli/app.py +941 -0
  18. helia_profiler-0.1.1/src/helia_profiler/cli/cache_cmd.py +72 -0
  19. helia_profiler-0.1.1/src/helia_profiler/cli/common.py +23 -0
  20. helia_profiler-0.1.1/src/helia_profiler/cli/compare_cmd.py +50 -0
  21. helia_profiler-0.1.1/src/helia_profiler/cli/inspect_cmds.py +239 -0
  22. helia_profiler-0.1.1/src/helia_profiler/cli/power_cmd.py +42 -0
  23. helia_profiler-0.1.1/src/helia_profiler/cli/profile_cmd.py +201 -0
  24. helia_profiler-0.1.1/src/helia_profiler/cli/validate_cmd.py +302 -0
  25. helia_profiler-0.1.1/src/helia_profiler/config.py +862 -0
  26. helia_profiler-0.1.1/src/helia_profiler/console/__init__.py +13 -0
  27. helia_profiler-0.1.1/src/helia_profiler/console/analysis.py +226 -0
  28. helia_profiler-0.1.1/src/helia_profiler/console/base.py +182 -0
  29. helia_profiler-0.1.1/src/helia_profiler/console/compare.py +433 -0
  30. helia_profiler-0.1.1/src/helia_profiler/console/doctor.py +115 -0
  31. helia_profiler-0.1.1/src/helia_profiler/console/progress.py +203 -0
  32. helia_profiler-0.1.1/src/helia_profiler/console/results.py +414 -0
  33. helia_profiler-0.1.1/src/helia_profiler/console/tables.py +32 -0
  34. helia_profiler-0.1.1/src/helia_profiler/counters.py +253 -0
  35. helia_profiler-0.1.1/src/helia_profiler/data/armv8m_pmu_events.json +422 -0
  36. helia_profiler-0.1.1/src/helia_profiler/data/comparison_profile.schema.v1.json +38 -0
  37. helia_profiler-0.1.1/src/helia_profiler/data/models/tiny_cnn.json +27 -0
  38. helia_profiler-0.1.1/src/helia_profiler/data/models/tiny_cnn.tflite +0 -0
  39. helia_profiler-0.1.1/src/helia_profiler/data/profile_results.schema.v1.json +18 -0
  40. helia_profiler-0.1.1/src/helia_profiler/data/result_manifest.schema.v1.json +144 -0
  41. helia_profiler-0.1.1/src/helia_profiler/data/run_metadata.schema.v1.json +20 -0
  42. helia_profiler-0.1.1/src/helia_profiler/data/run_summary.schema.v1.json +27 -0
  43. helia_profiler-0.1.1/src/helia_profiler/data/session_intent.schema.v1.json +13 -0
  44. helia_profiler-0.1.1/src/helia_profiler/doctor.py +182 -0
  45. helia_profiler-0.1.1/src/helia_profiler/engines/__init__.py +93 -0
  46. helia_profiler-0.1.1/src/helia_profiler/engines/base.py +178 -0
  47. helia_profiler-0.1.1/src/helia_profiler/engines/helia_aot/__init__.py +22 -0
  48. helia_profiler-0.1.1/src/helia_profiler/engines/helia_aot/adapter.py +178 -0
  49. helia_profiler-0.1.1/src/helia_profiler/engines/helia_aot/cmsis_nn.py +223 -0
  50. helia_profiler-0.1.1/src/helia_profiler/engines/helia_aot/compile.py +476 -0
  51. helia_profiler-0.1.1/src/helia_profiler/engines/helia_aot/manifest.py +408 -0
  52. helia_profiler-0.1.1/src/helia_profiler/engines/helia_rt/__init__.py +32 -0
  53. helia_profiler-0.1.1/src/helia_profiler/engines/helia_rt/adapter.py +244 -0
  54. helia_profiler-0.1.1/src/helia_profiler/engines/helia_rt/artifacts.py +364 -0
  55. helia_profiler-0.1.1/src/helia_profiler/engines/helia_rt/download.py +209 -0
  56. helia_profiler-0.1.1/src/helia_profiler/engines/helia_rt/nsx_module.py +240 -0
  57. helia_profiler-0.1.1/src/helia_profiler/engines/templates/heliaaot_attributes.h.j2 +178 -0
  58. helia_profiler-0.1.1/src/helia_profiler/engines/tflm.py +85 -0
  59. helia_profiler-0.1.1/src/helia_profiler/errors.py +83 -0
  60. helia_profiler-0.1.1/src/helia_profiler/evaluation/__init__.py +68 -0
  61. helia_profiler-0.1.1/src/helia_profiler/evaluation/comparability.py +245 -0
  62. helia_profiler-0.1.1/src/helia_profiler/evaluation/compare.py +851 -0
  63. helia_profiler-0.1.1/src/helia_profiler/evaluation/comparison_profile.py +334 -0
  64. helia_profiler-0.1.1/src/helia_profiler/evaluation/model_analysis.py +781 -0
  65. helia_profiler-0.1.1/src/helia_profiler/evaluation/validity.py +237 -0
  66. helia_profiler-0.1.1/src/helia_profiler/examples.py +44 -0
  67. helia_profiler-0.1.1/src/helia_profiler/firmware/__init__.py +897 -0
  68. helia_profiler-0.1.1/src/helia_profiler/firmware/context.py +345 -0
  69. helia_profiler-0.1.1/src/helia_profiler/firmware/op_resolver.py +185 -0
  70. helia_profiler-0.1.1/src/helia_profiler/firmware/project.py +399 -0
  71. helia_profiler-0.1.1/src/helia_profiler/firmware/render.py +18 -0
  72. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/CMakeLists.txt.j2 +247 -0
  73. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_ble_reset.j2 +41 -0
  74. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_cache_shims.j2 +30 -0
  75. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_crypto_otp_shutdown.j2 +35 -0
  76. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_dwt_init.j2 +7 -0
  77. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_extreme_mode.j2 +65 -0
  78. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_gpio_sync.j2 +124 -0
  79. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_hpx_printf.j2 +228 -0
  80. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_newlib_syscalls.j2 +29 -0
  81. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_peripheral_power_down.j2 +73 -0
  82. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_power_terminal.j2 +103 -0
  83. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_power_terminal_success.j2 +17 -0
  84. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_ssram_power.j2 +62 -0
  85. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_stimer_init.j2 +25 -0
  86. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_system_includes.j2 +33 -0
  87. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_usb_config.j2 +20 -0
  88. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/_usb_timer.j2 +11 -0
  89. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/hpx_pmu_profiler.cc.j2 +223 -0
  90. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/hpx_pmu_profiler.h.j2 +104 -0
  91. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/main.cc.j2 +991 -0
  92. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/main_aot.cc.j2 +1039 -0
  93. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/modules.cmake.j2 +7 -0
  94. helia_profiler-0.1.1/src/helia_profiler/firmware/templates/nsx.yml.j2 +30 -0
  95. helia_profiler-0.1.1/src/helia_profiler/nsx.py +330 -0
  96. helia_profiler-0.1.1/src/helia_profiler/pipeline.py +475 -0
  97. helia_profiler-0.1.1/src/helia_profiler/placement.py +102 -0
  98. helia_profiler-0.1.1/src/helia_profiler/platform/__init__.py +87 -0
  99. helia_profiler-0.1.1/src/helia_profiler/platform/board.py +194 -0
  100. helia_profiler-0.1.1/src/helia_profiler/platform/capabilities.py +254 -0
  101. helia_profiler-0.1.1/src/helia_profiler/platform/custom.py +250 -0
  102. helia_profiler-0.1.1/src/helia_profiler/platform/registry.py +149 -0
  103. helia_profiler-0.1.1/src/helia_profiler/platform/soc.py +627 -0
  104. helia_profiler-0.1.1/src/helia_profiler/power/__init__.py +112 -0
  105. helia_profiler-0.1.1/src/helia_profiler/power/base.py +206 -0
  106. helia_profiler-0.1.1/src/helia_profiler/power/diagnostics.py +165 -0
  107. helia_profiler-0.1.1/src/helia_profiler/power/joulescope/__init__.py +21 -0
  108. helia_profiler-0.1.1/src/helia_profiler/power/joulescope/capture_gated.py +636 -0
  109. helia_profiler-0.1.1/src/helia_profiler/power/joulescope/device.py +325 -0
  110. helia_profiler-0.1.1/src/helia_profiler/power/joulescope/diagnostics.py +81 -0
  111. helia_profiler-0.1.1/src/helia_profiler/power/joulescope/driver.py +353 -0
  112. helia_profiler-0.1.1/src/helia_profiler/power/joulescope/stats.py +474 -0
  113. helia_profiler-0.1.1/src/helia_profiler/power/joulescope/sync.py +99 -0
  114. helia_profiler-0.1.1/src/helia_profiler/power/ondevice_driver.py +120 -0
  115. helia_profiler-0.1.1/src/helia_profiler/power/sync.py +121 -0
  116. helia_profiler-0.1.1/src/helia_profiler/power/terminal_transport.py +255 -0
  117. helia_profiler-0.1.1/src/helia_profiler/presentation.py +163 -0
  118. helia_profiler-0.1.1/src/helia_profiler/profiler.py +126 -0
  119. helia_profiler-0.1.1/src/helia_profiler/report/__init__.py +156 -0
  120. helia_profiler-0.1.1/src/helia_profiler/report/aot.py +112 -0
  121. helia_profiler-0.1.1/src/helia_profiler/report/contracts.py +10 -0
  122. helia_profiler-0.1.1/src/helia_profiler/report/csv_writer.py +106 -0
  123. helia_profiler-0.1.1/src/helia_profiler/report/json_writer.py +91 -0
  124. helia_profiler-0.1.1/src/helia_profiler/report/manifest.py +202 -0
  125. helia_profiler-0.1.1/src/helia_profiler/report/memory.py +136 -0
  126. helia_profiler-0.1.1/src/helia_profiler/report/metadata.py +73 -0
  127. helia_profiler-0.1.1/src/helia_profiler/report/model_explorer.py +237 -0
  128. helia_profiler-0.1.1/src/helia_profiler/report/power.py +81 -0
  129. helia_profiler-0.1.1/src/helia_profiler/report/summary.py +380 -0
  130. helia_profiler-0.1.1/src/helia_profiler/results/__init__.py +77 -0
  131. helia_profiler-0.1.1/src/helia_profiler/results/artifacts.py +158 -0
  132. helia_profiler-0.1.1/src/helia_profiler/results/manifest.py +289 -0
  133. helia_profiler-0.1.1/src/helia_profiler/results/models.py +338 -0
  134. helia_profiler-0.1.1/src/helia_profiler/session.py +443 -0
  135. helia_profiler-0.1.1/src/helia_profiler/stages/__init__.py +41 -0
  136. helia_profiler-0.1.1/src/helia_profiler/stages/analyze_model.py +42 -0
  137. helia_profiler-0.1.1/src/helia_profiler/stages/build_firmware.py +72 -0
  138. helia_profiler-0.1.1/src/helia_profiler/stages/build_power_firmware.py +111 -0
  139. helia_profiler-0.1.1/src/helia_profiler/stages/capture_pmu.py +47 -0
  140. helia_profiler-0.1.1/src/helia_profiler/stages/capture_power.py +236 -0
  141. helia_profiler-0.1.1/src/helia_profiler/stages/collect_power_terminal.py +120 -0
  142. helia_profiler-0.1.1/src/helia_profiler/stages/ensure_powered.py +69 -0
  143. helia_profiler-0.1.1/src/helia_profiler/stages/flash.py +88 -0
  144. helia_profiler-0.1.1/src/helia_profiler/stages/flash_power.py +80 -0
  145. helia_profiler-0.1.1/src/helia_profiler/stages/generate_firmware.py +40 -0
  146. helia_profiler-0.1.1/src/helia_profiler/stages/plan_memory.py +365 -0
  147. helia_profiler-0.1.1/src/helia_profiler/stages/plan_power.py +125 -0
  148. helia_profiler-0.1.1/src/helia_profiler/stages/preflight.py +257 -0
  149. helia_profiler-0.1.1/src/helia_profiler/stages/prepare_engine.py +48 -0
  150. helia_profiler-0.1.1/src/helia_profiler/stages/report.py +44 -0
  151. helia_profiler-0.1.1/src/helia_profiler/stages/resolve_platform.py +119 -0
  152. helia_profiler-0.1.1/src/helia_profiler/stages/resolve_probe.py +55 -0
  153. helia_profiler-0.1.1/src/helia_profiler/stages/verify_placement.py +121 -0
  154. helia_profiler-0.1.1/src/helia_profiler/target/__init__.py +1 -0
  155. helia_profiler-0.1.1/src/helia_profiler/target/lifecycle.py +293 -0
  156. helia_profiler-0.1.1/src/helia_profiler/target/probe/__init__.py +11 -0
  157. helia_profiler-0.1.1/src/helia_profiler/target/probe/base.py +97 -0
  158. helia_profiler-0.1.1/src/helia_profiler/target/probe/jlink.py +944 -0
  159. helia_profiler-0.1.1/src/helia_profiler/toolchain_probe.py +234 -0
  160. helia_profiler-0.1.1/src/helia_profiler/toolchains.py +88 -0
  161. helia_profiler-0.1.1/src/helia_profiler/transport/__init__.py +103 -0
  162. helia_profiler-0.1.1/src/helia_profiler/transport/base.py +116 -0
  163. helia_profiler-0.1.1/src/helia_profiler/transport/ports.py +55 -0
  164. helia_profiler-0.1.1/src/helia_profiler/transport/protocol.py +269 -0
  165. helia_profiler-0.1.1/src/helia_profiler/transport/rtt.py +754 -0
  166. helia_profiler-0.1.1/src/helia_profiler/transport/rtt_control.py +259 -0
  167. helia_profiler-0.1.1/src/helia_profiler/transport/swo.py +232 -0
  168. helia_profiler-0.1.1/src/helia_profiler/transport/timing.py +32 -0
  169. helia_profiler-0.1.1/src/helia_profiler/transport/uart.py +237 -0
  170. helia_profiler-0.1.1/src/helia_profiler/transport/usb_cdc.py +443 -0
  171. helia_profiler-0.1.1/src/helia_profiler/usb_identity.py +40 -0
  172. helia_profiler-0.1.1/src/helia_profiler/validation/__init__.py +38 -0
  173. helia_profiler-0.1.1/src/helia_profiler/validation/bundle.py +277 -0
  174. helia_profiler-0.1.1/src/helia_profiler/validation/compare.py +322 -0
  175. helia_profiler-0.1.1/src/helia_profiler/validation/matrix.py +427 -0
  176. helia_profiler-0.1.1/src/helia_profiler/validation/report.py +318 -0
  177. helia_profiler-0.1.1/src/helia_profiler/validation/runner.py +580 -0
  178. helia_profiler-0.1.1/src/helia_profiler/vendor/segger_rtt/Config/SEGGER_RTT_Conf.h +32 -0
  179. helia_profiler-0.1.1/src/helia_profiler/vendor/segger_rtt/LICENSE.md +18 -0
  180. helia_profiler-0.1.1/src/helia_profiler/vendor/segger_rtt/RTT/SEGGER_RTT.c +2057 -0
  181. helia_profiler-0.1.1/src/helia_profiler/vendor/segger_rtt/RTT/SEGGER_RTT.h +486 -0
  182. helia_profiler-0.1.1/src/helia_profiler/vendor/segger_rtt/RTT/SEGGER_RTT_ConfDefaults.h +476 -0
  183. helia_profiler-0.1.1/src/helia_profiler/vendor/segger_rtt/SOURCE.md +14 -0
  184. helia_profiler-0.1.1/src/helia_profiler.egg-info/PKG-INFO +129 -0
  185. helia_profiler-0.1.1/src/helia_profiler.egg-info/SOURCES.txt +254 -0
  186. helia_profiler-0.1.1/src/helia_profiler.egg-info/dependency_links.txt +1 -0
  187. helia_profiler-0.1.1/src/helia_profiler.egg-info/entry_points.txt +2 -0
  188. helia_profiler-0.1.1/src/helia_profiler.egg-info/requires.txt +26 -0
  189. helia_profiler-0.1.1/src/helia_profiler.egg-info/top_level.txt +1 -0
  190. helia_profiler-0.1.1/tests/test_aot_manifest.py +374 -0
  191. helia_profiler-0.1.1/tests/test_aot_memory_plan.py +203 -0
  192. helia_profiler-0.1.1/tests/test_aot_placement_rulesets.py +276 -0
  193. helia_profiler-0.1.1/tests/test_api_reference_docs.py +90 -0
  194. helia_profiler-0.1.1/tests/test_api_result.py +100 -0
  195. helia_profiler-0.1.1/tests/test_api_stability.py +38 -0
  196. helia_profiler-0.1.1/tests/test_cli_cache.py +70 -0
  197. helia_profiler-0.1.1/tests/test_cli_nsx_module.py +59 -0
  198. helia_profiler-0.1.1/tests/test_cli_profile.py +126 -0
  199. helia_profiler-0.1.1/tests/test_cli_typer_app.py +173 -0
  200. helia_profiler-0.1.1/tests/test_collect_power_terminal.py +207 -0
  201. helia_profiler-0.1.1/tests/test_comparability.py +104 -0
  202. helia_profiler-0.1.1/tests/test_compare.py +499 -0
  203. helia_profiler-0.1.1/tests/test_compare_cmd.py +59 -0
  204. helia_profiler-0.1.1/tests/test_comparison_profile.py +174 -0
  205. helia_profiler-0.1.1/tests/test_compiler_launcher.py +166 -0
  206. helia_profiler-0.1.1/tests/test_config.py +679 -0
  207. helia_profiler-0.1.1/tests/test_config_reference_docs.py +56 -0
  208. helia_profiler-0.1.1/tests/test_console_errors.py +46 -0
  209. helia_profiler-0.1.1/tests/test_console_progress.py +105 -0
  210. helia_profiler-0.1.1/tests/test_counters.py +111 -0
  211. helia_profiler-0.1.1/tests/test_doctor.py +77 -0
  212. helia_profiler-0.1.1/tests/test_ensure_powered.py +207 -0
  213. helia_profiler-0.1.1/tests/test_errors.py +89 -0
  214. helia_profiler-0.1.1/tests/test_example_models.py +76 -0
  215. helia_profiler-0.1.1/tests/test_firmware.py +1663 -0
  216. helia_profiler-0.1.1/tests/test_firmware_errors.py +75 -0
  217. helia_profiler-0.1.1/tests/test_flash_stage.py +91 -0
  218. helia_profiler-0.1.1/tests/test_helia_rt_adapter.py +392 -0
  219. helia_profiler-0.1.1/tests/test_jlink.py +251 -0
  220. helia_profiler-0.1.1/tests/test_model_analysis.py +144 -0
  221. helia_profiler-0.1.1/tests/test_model_explorer.py +86 -0
  222. helia_profiler-0.1.1/tests/test_notebook_showcase.py +74 -0
  223. helia_profiler-0.1.1/tests/test_notebook_walkthrough.py +39 -0
  224. helia_profiler-0.1.1/tests/test_nsx_cli.py +166 -0
  225. helia_profiler-0.1.1/tests/test_op_resolver.py +103 -0
  226. helia_profiler-0.1.1/tests/test_package_layout.py +61 -0
  227. helia_profiler-0.1.1/tests/test_parser.py +421 -0
  228. helia_profiler-0.1.1/tests/test_pipeline.py +470 -0
  229. helia_profiler-0.1.1/tests/test_plan_memory.py +325 -0
  230. helia_profiler-0.1.1/tests/test_platform.py +227 -0
  231. helia_profiler-0.1.1/tests/test_power.py +2240 -0
  232. helia_profiler-0.1.1/tests/test_power_cmd.py +20 -0
  233. helia_profiler-0.1.1/tests/test_power_drivers.py +223 -0
  234. helia_profiler-0.1.1/tests/test_power_terminal.py +499 -0
  235. helia_profiler-0.1.1/tests/test_preflight.py +307 -0
  236. helia_profiler-0.1.1/tests/test_probe_cli.py +232 -0
  237. helia_profiler-0.1.1/tests/test_profiler.py +42 -0
  238. helia_profiler-0.1.1/tests/test_readiness.py +168 -0
  239. helia_profiler-0.1.1/tests/test_report.py +635 -0
  240. helia_profiler-0.1.1/tests/test_result_manifest.py +228 -0
  241. helia_profiler-0.1.1/tests/test_rtt_reader.py +1418 -0
  242. helia_profiler-0.1.1/tests/test_rtt_symbol.py +69 -0
  243. helia_profiler-0.1.1/tests/test_session.py +379 -0
  244. helia_profiler-0.1.1/tests/test_stages.py +177 -0
  245. helia_profiler-0.1.1/tests/test_template_render.py +712 -0
  246. helia_profiler-0.1.1/tests/test_tflm_adapter.py +62 -0
  247. helia_profiler-0.1.1/tests/test_toolchains.py +45 -0
  248. helia_profiler-0.1.1/tests/test_transport.py +214 -0
  249. helia_profiler-0.1.1/tests/test_usb_reader.py +212 -0
  250. helia_profiler-0.1.1/tests/test_validate_cli.py +165 -0
  251. helia_profiler-0.1.1/tests/test_validation_bundle_compare.py +197 -0
  252. helia_profiler-0.1.1/tests/test_validation_matrix.py +279 -0
  253. helia_profiler-0.1.1/tests/test_validation_report.py +113 -0
  254. helia_profiler-0.1.1/tests/test_validation_runner.py +366 -0
  255. helia_profiler-0.1.1/tests/test_validity.py +171 -0
  256. helia_profiler-0.1.1/tests/test_verify_placement.py +159 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,129 @@
1
+ Metadata-Version: 2.4
2
+ Name: helia-profiler
3
+ Version: 0.1.1
4
+ Summary: Profile LiteRT models on Ambiq Apollo hardware
5
+ License-Expression: Apache-2.0
6
+ Project-URL: Documentation, https://ambiqai.github.io/helia-profiler/
7
+ Project-URL: Issues, https://github.com/AmbiqAI/helia-profiler/issues
8
+ Project-URL: Repository, https://github.com/AmbiqAI/helia-profiler
9
+ Keywords: ambiq,apollo,embedded,joulescope,litert,profiling
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Topic :: Software Development :: Embedded Systems
18
+ Requires-Python: <3.13,>=3.11
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ License-File: THIRD_PARTY_NOTICES.md
22
+ License-File: src/helia_profiler/vendor/segger_rtt/LICENSE.md
23
+ Requires-Dist: Jinja2>=3.1
24
+ Requires-Dist: PyYAML>=6.0
25
+ Requires-Dist: rich>=13.0
26
+ Requires-Dist: pyserial>=3.5
27
+ Requires-Dist: pylink-square>=0.14.0
28
+ Requires-Dist: neuralspotx<0.8.0,>=0.7.8
29
+ Requires-Dist: numpy<3,>=2.1
30
+ Requires-Dist: pyjoulescope-driver<2.3.0,>=2.2.12; python_version < "3.12"
31
+ Requires-Dist: pyjoulescope-driver<3,>=2.3.2; python_version >= "3.12"
32
+ Requires-Dist: pydantic<3,>=2.7
33
+ Requires-Dist: typer>=0.16
34
+ Requires-Dist: click>=8.2
35
+ Provides-Extra: aot
36
+ Requires-Dist: helia-aot>=0.18.0; extra == "aot"
37
+ Requires-Dist: ai-edge-litert<2.2,>=2.1.6; extra == "aot"
38
+ Requires-Dist: backports-strenum<1.3; extra == "aot"
39
+ Provides-Extra: analysis
40
+ Requires-Dist: ai-edge-litert<2.2,>=2.1.6; extra == "analysis"
41
+ Requires-Dist: backports-strenum<1.3; extra == "analysis"
42
+ Requires-Dist: flatbuffers>=24.0; extra == "analysis"
43
+ Dynamic: license-file
44
+
45
+ # heliaPROFILER
46
+
47
+ **`hpx`** profiles LiteRT (`.tflite`) models on real Ambiq Apollo silicon —
48
+ one command builds temporary firmware, flashes it, and returns per-layer PMU
49
+ counter breakdowns plus optional Joulescope power/energy per inference.
50
+
51
+ > **Alpha.** heliaPROFILER is pre-1.0. Breaking changes may land on **minor**
52
+ > versions until v1.0. Pin an exact version in production pipelines.
53
+
54
+ 📖 Full docs: **https://ambiqai.github.io/helia-profiler/**
55
+
56
+ ## Why hpx
57
+
58
+ - **Per-layer PMU breakdowns** — cycles, instructions, cache, and (on
59
+ Cortex-M55 boards) MVE and memory counter groups, one row per layer.
60
+ - **Power & energy per inference** — GPIO-gated Joulescope capture
61
+ (JS110/JS220) isolates the inference window from setup/teardown noise.
62
+ - **Three engines** — `tflm` (vanilla TFLM baseline), `helia-rt` (Ambiq's
63
+ optimized TFLM interpreter), and `helia-aot` (Ambiq's ahead-of-time model
64
+ compiler), selected explicitly
65
+ per run.
66
+ - **Multiple toolchains** — `arm-none-eabi-gcc`, `armclang`, and ATfE, so you
67
+ can compare build/runtime trade-offs without changing your model.
68
+ - **Memory placement control** — pin the tensor arena and model weights to
69
+ TCM, SRAM, MRAM, or PSRAM independently.
70
+ - **Model Explorer overlays** — export per-layer metrics as JSON overlays
71
+ for [Model Explorer](https://github.com/google-ai-edge/model-explorer).
72
+ - **Config-file driven** — a frozen, immutable `hpx.yml` schema merges with
73
+ CLI flags, with strict validation and did-you-mean suggestions for typos.
74
+ - **Multi-board** — Apollo3, Apollo4, and Apollo5-family EVBs. Run
75
+ `hpx boards` for the exact list your install supports.
76
+
77
+ ## Install
78
+
79
+ ```bash
80
+ pip install helia-profiler
81
+ # or
82
+ uv tool install helia-profiler
83
+ ```
84
+
85
+ Extras: `helia-profiler[aot]` adds the heliaAOT compiler;
86
+ `helia-profiler[analysis]` enables model compute/parameter analysis without
87
+ hardware.
88
+
89
+ Hardware prerequisites (ARM toolchain, SEGGER J-Link, and optional
90
+ Joulescope drivers) are covered step by step in
91
+ [Getting Started](https://ambiqai.github.io/helia-profiler/getting-started/).
92
+
93
+ ## Quick taste
94
+
95
+ ```bash
96
+ hpx doctor # check toolchain + dependencies
97
+ hpx profile model.tflite # profile with defaults
98
+ hpx profile model.tflite --power # add Joulescope power capture
99
+ hpx profile --config hpx.yml # reproducible, config-driven run
100
+ ```
101
+
102
+ ```text
103
+ Layer Op ARM_PMU_CPU_CYCLES ARM_PMU_INST_RETIRED
104
+ 0 CONV_2D 123,456 98,765
105
+ 1 DEPTHWISE_CONV_2D 45,678 34,567
106
+ ...
107
+ Power: 1.234 mA avg 12.345 mW avg x.xxx µJ / inference
108
+ ```
109
+
110
+ *(Illustrative sample only — see
111
+ [Getting Started](https://ambiqai.github.io/helia-profiler/getting-started/)
112
+ for a real walkthrough.)*
113
+
114
+ ## Development
115
+
116
+ ```bash
117
+ uv sync --locked --all-groups
118
+ uv run ruff check src tests tools
119
+ uv run pytest -q
120
+ uv run mkdocs build --strict
121
+ ```
122
+
123
+ Repository workflows use the committed `uv.lock` for reproducibility. PyPI
124
+ installations continue to resolve the compatible dependency ranges published in
125
+ `pyproject.toml`.
126
+
127
+ ## License
128
+
129
+ Apache-2.0
@@ -0,0 +1,85 @@
1
+ # heliaPROFILER
2
+
3
+ **`hpx`** profiles LiteRT (`.tflite`) models on real Ambiq Apollo silicon —
4
+ one command builds temporary firmware, flashes it, and returns per-layer PMU
5
+ counter breakdowns plus optional Joulescope power/energy per inference.
6
+
7
+ > **Alpha.** heliaPROFILER is pre-1.0. Breaking changes may land on **minor**
8
+ > versions until v1.0. Pin an exact version in production pipelines.
9
+
10
+ 📖 Full docs: **https://ambiqai.github.io/helia-profiler/**
11
+
12
+ ## Why hpx
13
+
14
+ - **Per-layer PMU breakdowns** — cycles, instructions, cache, and (on
15
+ Cortex-M55 boards) MVE and memory counter groups, one row per layer.
16
+ - **Power & energy per inference** — GPIO-gated Joulescope capture
17
+ (JS110/JS220) isolates the inference window from setup/teardown noise.
18
+ - **Three engines** — `tflm` (vanilla TFLM baseline), `helia-rt` (Ambiq's
19
+ optimized TFLM interpreter), and `helia-aot` (Ambiq's ahead-of-time model
20
+ compiler), selected explicitly
21
+ per run.
22
+ - **Multiple toolchains** — `arm-none-eabi-gcc`, `armclang`, and ATfE, so you
23
+ can compare build/runtime trade-offs without changing your model.
24
+ - **Memory placement control** — pin the tensor arena and model weights to
25
+ TCM, SRAM, MRAM, or PSRAM independently.
26
+ - **Model Explorer overlays** — export per-layer metrics as JSON overlays
27
+ for [Model Explorer](https://github.com/google-ai-edge/model-explorer).
28
+ - **Config-file driven** — a frozen, immutable `hpx.yml` schema merges with
29
+ CLI flags, with strict validation and did-you-mean suggestions for typos.
30
+ - **Multi-board** — Apollo3, Apollo4, and Apollo5-family EVBs. Run
31
+ `hpx boards` for the exact list your install supports.
32
+
33
+ ## Install
34
+
35
+ ```bash
36
+ pip install helia-profiler
37
+ # or
38
+ uv tool install helia-profiler
39
+ ```
40
+
41
+ Extras: `helia-profiler[aot]` adds the heliaAOT compiler;
42
+ `helia-profiler[analysis]` enables model compute/parameter analysis without
43
+ hardware.
44
+
45
+ Hardware prerequisites (ARM toolchain, SEGGER J-Link, and optional
46
+ Joulescope drivers) are covered step by step in
47
+ [Getting Started](https://ambiqai.github.io/helia-profiler/getting-started/).
48
+
49
+ ## Quick taste
50
+
51
+ ```bash
52
+ hpx doctor # check toolchain + dependencies
53
+ hpx profile model.tflite # profile with defaults
54
+ hpx profile model.tflite --power # add Joulescope power capture
55
+ hpx profile --config hpx.yml # reproducible, config-driven run
56
+ ```
57
+
58
+ ```text
59
+ Layer Op ARM_PMU_CPU_CYCLES ARM_PMU_INST_RETIRED
60
+ 0 CONV_2D 123,456 98,765
61
+ 1 DEPTHWISE_CONV_2D 45,678 34,567
62
+ ...
63
+ Power: 1.234 mA avg 12.345 mW avg x.xxx µJ / inference
64
+ ```
65
+
66
+ *(Illustrative sample only — see
67
+ [Getting Started](https://ambiqai.github.io/helia-profiler/getting-started/)
68
+ for a real walkthrough.)*
69
+
70
+ ## Development
71
+
72
+ ```bash
73
+ uv sync --locked --all-groups
74
+ uv run ruff check src tests tools
75
+ uv run pytest -q
76
+ uv run mkdocs build --strict
77
+ ```
78
+
79
+ Repository workflows use the committed `uv.lock` for reproducibility. PyPI
80
+ installations continue to resolve the compatible dependency ranges published in
81
+ `pyproject.toml`.
82
+
83
+ ## License
84
+
85
+ Apache-2.0
@@ -0,0 +1,15 @@
1
+ # Third-Party Notices
2
+
3
+ heliaPROFILER includes the following third-party source code.
4
+
5
+ ## SEGGER Real Time Transfer (RTT)
6
+
7
+ - Copyright: Copyright (c) 2026 SEGGER Microcontroller GmbH
8
+ - Version: V8.58.0
9
+ - Source: [SEGGERMicro/RTT](https://github.com/SEGGERMicro/RTT)
10
+ - License: permissive redistribution license; see
11
+ `src/helia_profiler/vendor/segger_rtt/LICENSE.md`
12
+
13
+ The bundled target sources are used to build temporary profiling firmware.
14
+ SEGGER J-Link host software, libraries, drivers, and firmware are not included
15
+ in heliaPROFILER and remain subject to SEGGER's separate terms.
@@ -0,0 +1,125 @@
1
+ [project]
2
+ name = "helia-profiler"
3
+ version = "0.1.1"
4
+ description = "Profile LiteRT models on Ambiq Apollo hardware"
5
+ readme = "README.md"
6
+ requires-python = ">=3.11,<3.13"
7
+ license = "Apache-2.0"
8
+ license-files = [
9
+ "LICENSE",
10
+ "THIRD_PARTY_NOTICES.md",
11
+ "src/helia_profiler/vendor/segger_rtt/LICENSE.md",
12
+ ]
13
+ keywords = ["ambiq", "apollo", "embedded", "joulescope", "litert", "profiling"]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Environment :: Console",
17
+ "Intended Audience :: Developers",
18
+ "Operating System :: OS Independent",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Topic :: Software Development :: Embedded Systems",
23
+ ]
24
+ dependencies = [
25
+ "Jinja2>=3.1",
26
+ "PyYAML>=6.0",
27
+ "rich>=13.0",
28
+ "pyserial>=3.5",
29
+ "pylink-square>=0.14.0",
30
+ "neuralspotx>=0.7.8,<0.8.0",
31
+ "numpy>=2.1,<3",
32
+ "pyjoulescope-driver>=2.2.12,<2.3.0; python_version < '3.12'",
33
+ "pyjoulescope-driver>=2.3.2,<3; python_version >= '3.12'",
34
+ "pydantic>=2.7,<3",
35
+ "typer>=0.16",
36
+ "click>=8.2",
37
+ ]
38
+
39
+ [project.optional-dependencies]
40
+ aot = [
41
+ "helia-aot>=0.18.0",
42
+ "ai-edge-litert>=2.1.6,<2.2",
43
+ "backports-strenum<1.3",
44
+ ]
45
+ analysis = [
46
+ "ai-edge-litert>=2.1.6,<2.2",
47
+ "backports-strenum<1.3",
48
+ "flatbuffers>=24.0",
49
+ ]
50
+
51
+ [project.scripts]
52
+ hpx = "helia_profiler.cli:main"
53
+
54
+ [project.urls]
55
+ Documentation = "https://ambiqai.github.io/helia-profiler/"
56
+ Issues = "https://github.com/AmbiqAI/helia-profiler/issues"
57
+ Repository = "https://github.com/AmbiqAI/helia-profiler"
58
+
59
+ [dependency-groups]
60
+ lint = ["ruff>=0.11.0,<0.12"]
61
+ test = ["pytest>=8.0", "pytest-timeout>=2.3"]
62
+ notebook = ["ipykernel>=6,<8"]
63
+ docs = [
64
+ "mkdocs-material>=9.0",
65
+ "mkdocstrings[python]>=0.27",
66
+ "pymdown-extensions>=10.15",
67
+ "zensical>=0.0.51,<0.1",
68
+ ]
69
+
70
+ [build-system]
71
+ requires = ["setuptools>=77.0.3", "wheel"]
72
+ build-backend = "setuptools.build_meta"
73
+
74
+ [tool.setuptools]
75
+ package-dir = {"" = "src"}
76
+ include-package-data = true
77
+
78
+ [tool.setuptools.packages.find]
79
+ where = ["src"]
80
+ include = ["helia_profiler", "helia_profiler.*"]
81
+
82
+ [tool.setuptools.package-data]
83
+ helia_profiler = [
84
+ "firmware/templates/**/*",
85
+ "engines/templates/**/*",
86
+ "data/*.json",
87
+ "data/models/*.json",
88
+ "data/models/*.tflite",
89
+ "vendor/segger_rtt/**/*",
90
+ ]
91
+
92
+ [tool.pytest.ini_options]
93
+ testpaths = ["tests"]
94
+ addopts = "-m 'not hardware'"
95
+ markers = [
96
+ "hardware: requires physical target hardware (EVB + J-Link, optional Joulescope). Excluded by default; run via `hpx validate` or `pytest -m hardware`.",
97
+ ]
98
+
99
+ [tool.ruff]
100
+ line-length = 100
101
+ target-version = "py310"
102
+
103
+ [tool.ruff.lint]
104
+ select = [
105
+ "E4",
106
+ "E7",
107
+ "E9",
108
+ "F",
109
+ "I",
110
+ ]
111
+ ignore = [
112
+ "E741",
113
+ "F401",
114
+ "F841",
115
+ "I001",
116
+ ]
117
+
118
+ [tool.ruff.format]
119
+ quote-style = "double"
120
+ indent-style = "space"
121
+ skip-magic-trailing-comma = false
122
+ line-ending = "auto"
123
+
124
+ [tool.ruff.lint.per-file-ignores]
125
+ "**/__init__.py" = ["F401"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+