gitextract_amujz6e_/ ├── .github/ │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.md │ │ └── feature_request.md │ └── workflows/ │ ├── blacken.yml │ ├── build-and-upload.yml │ ├── codeql.yml │ ├── run-linters.yml │ ├── test-smoketests.yml │ └── tests.yml ├── .gitignore ├── .readthedocs.yaml ├── .vscode/ │ └── c_cpp_properties.json ├── CITATION.cff ├── CLAUDE.md ├── CMakeLists.txt ├── CODE_OF_CONDUCT.md ├── GNUmakefile ├── LICENSE ├── MANIFEST.in ├── Makefile ├── Pipfile ├── README.md ├── Scalene-Agents.md ├── Scalene-Debugging.md ├── Scalene-GUI.md ├── agents/ │ └── windows-memory-profiling-port.md ├── benchmarks/ │ ├── bench_torch_memory.py │ ├── benchmark.py │ ├── julia1_nopil.py │ ├── measure_profiler_memory.py │ ├── new_benchmark.py │ └── pystone.py ├── demo_torch_jit.py ├── docs/ │ └── scalene-demo.ipynb ├── index.rst ├── mypy.ini ├── pyproject.toml ├── pyrightconfig.json ├── pytest.ini ├── refactoring_todo.md ├── requirements.txt ├── ruff.toml ├── scalene/ │ ├── README.md │ ├── __init__.py │ ├── __main__.py │ ├── adaptive.py │ ├── find_browser.py │ ├── get_module_details.py │ ├── launchbrowser.py │ ├── merge_scalene_neuron_profiles.py │ ├── profile.py │ ├── redirect_python.py │ ├── replacement_asyncio.py │ ├── replacement_exec.py │ ├── replacement_exit.py │ ├── replacement_fork.py │ ├── replacement_get_context.py │ ├── replacement_lock.py │ ├── replacement_mp_lock.py │ ├── replacement_pjoin.py │ ├── replacement_poll_selector.py │ ├── replacement_sem_lock.py │ ├── replacement_signal_fns.py │ ├── replacement_thread_join.py │ ├── runningstats.py │ ├── scalene-gui/ │ │ ├── README.md │ │ ├── TODO-TypeScript.md │ │ ├── amazon.ts │ │ ├── anthropic.ts │ │ ├── azure.ts │ │ ├── example-profile.js │ │ ├── gemini.ts │ │ ├── gui-elements.ts │ │ ├── index.html │ │ ├── index.html.template │ │ ├── list-amazon-models.py │ │ ├── ollama.ts │ │ ├── openai.ts │ │ ├── optimizations.ts │ │ ├── package.json │ │ ├── persistence.ts │ │ ├── prism.css │ │ ├── prism.d.ts │ │ ├── prism.js │ │ ├── profile.json │ │ ├── profiler.html │ │ ├── scalene-demo.ts │ │ ├── scalene-fetch.ts │ │ ├── scalene-gui-bundle.js │ │ ├── scalene-gui.ts │ │ ├── tablesort.d.ts │ │ ├── tablesort.js │ │ ├── tsconfig.json │ │ └── utils.ts │ ├── scalene-usage.txt │ ├── scalene_accelerator.py │ ├── scalene_analysis.py │ ├── scalene_apple_gpu.py │ ├── scalene_arguments.py │ ├── scalene_async.py │ ├── scalene_client_timer.py │ ├── scalene_config.py │ ├── scalene_cpu_profiler.py │ ├── scalene_funcutils.py │ ├── scalene_jax.py │ ├── scalene_json.py │ ├── scalene_jupyter.py │ ├── scalene_leak_analysis.py │ ├── scalene_library_profiler.py │ ├── scalene_library_registry.py │ ├── scalene_lifecycle.py │ ├── scalene_magics.py │ ├── scalene_mapfile.py │ ├── scalene_memory_profiler.py │ ├── scalene_neuron.py │ ├── scalene_nvidia_gpu.py │ ├── scalene_output.py │ ├── scalene_parseargs.py │ ├── scalene_preload.py │ ├── scalene_profiler.py │ ├── scalene_signal_manager.py │ ├── scalene_signals.py │ ├── scalene_sigqueue.py │ ├── scalene_statistics.py │ ├── scalene_tensorflow.py │ ├── scalene_torch.py │ ├── scalene_tracer.py │ ├── scalene_tracing.py │ ├── scalene_utility.py │ ├── scalene_windows.py │ ├── set_nvidia_gpu_modes.py │ ├── sorted_reservoir.py │ ├── sparkline.py │ ├── syntaxline.py │ └── time_info.py ├── setup.py ├── src/ │ ├── include/ │ │ ├── common.hpp │ │ ├── common_win.hpp │ │ ├── lowdiscrepancy.hpp │ │ ├── mallocrecursionguard.hpp │ │ ├── mallocrecursionguard_win.hpp │ │ ├── memcpysampler.hpp │ │ ├── poissonsampler.hpp │ │ ├── pyptr.h │ │ ├── pywhere.hpp │ │ ├── samplefile.hpp │ │ ├── samplefile_win.hpp │ │ ├── sampleheap.hpp │ │ ├── sampleheap_win.hpp │ │ ├── sampler.hpp │ │ ├── scaleneheader.hpp │ │ ├── thresholdsampler.hpp │ │ └── traceconfig.hpp │ └── source/ │ ├── get_line_atomic.cpp │ ├── libscalene.cpp │ ├── libscalene_windows.cpp │ ├── pywhere.cpp │ └── traceconfig.cpp ├── test/ │ ├── automatic/ │ │ ├── README.md │ │ ├── dataframe/ │ │ │ ├── README.md │ │ │ ├── dataframe-select-optimized.py │ │ │ └── dataframe-select-original.py │ │ └── svm/ │ │ ├── README.md │ │ ├── data/ │ │ │ └── svm_data.pkl │ │ ├── svm-optimized.py │ │ └── svm-original.py │ ├── expensive_benchmarks/ │ │ ├── README.md │ │ ├── bm_async_tree_io.py │ │ ├── bm_docutils.py │ │ ├── bm_fannukh.py │ │ ├── bm_mdp.py │ │ ├── bm_pprint.py │ │ ├── bm_raytrace.py │ │ ├── bm_sympy.py │ │ └── docutils_data/ │ │ └── docs/ │ │ ├── api/ │ │ │ ├── publisher.txt │ │ │ ├── runtime-settings.txt │ │ │ └── transforms.txt │ │ ├── dev/ │ │ │ ├── distributing.txt │ │ │ ├── enthought-plan.txt │ │ │ ├── enthought-rfp.txt │ │ │ ├── hacking.txt │ │ │ ├── policies.txt │ │ │ ├── pysource.txt │ │ │ ├── release.txt │ │ │ ├── repository.txt │ │ │ ├── rst/ │ │ │ │ ├── alternatives.txt │ │ │ │ └── problems.txt │ │ │ ├── runtime-settings-processing.txt │ │ │ ├── semantics.txt │ │ │ ├── testing.txt │ │ │ ├── todo.txt │ │ │ └── website.txt │ │ ├── howto/ │ │ │ ├── cmdline-tool.txt │ │ │ ├── html-stylesheets.txt │ │ │ ├── i18n.txt │ │ │ ├── rst-directives.txt │ │ │ ├── rst-roles.txt │ │ │ └── security.txt │ │ ├── index.txt │ │ ├── peps/ │ │ │ ├── pep-0256.txt │ │ │ ├── pep-0257.txt │ │ │ ├── pep-0258.txt │ │ │ └── pep-0287.txt │ │ ├── ref/ │ │ │ ├── doctree.txt │ │ │ └── rst/ │ │ │ ├── definitions.txt │ │ │ ├── directives.txt │ │ │ ├── introduction.txt │ │ │ ├── mathematics.txt │ │ │ ├── restructuredtext.txt │ │ │ └── roles.txt │ │ └── user/ │ │ ├── config.txt │ │ ├── emacs.txt │ │ ├── html.txt │ │ ├── latex.txt │ │ ├── links.txt │ │ ├── mailing-lists.txt │ │ ├── manpage.txt │ │ ├── odt.txt │ │ ├── rst/ │ │ │ ├── cheatsheet.txt │ │ │ ├── demo.txt │ │ │ ├── images/ │ │ │ │ └── biohazard.swf │ │ │ └── quickstart.txt │ │ ├── smartquotes.txt │ │ └── tools.txt │ ├── issues/ │ │ ├── test-issue124.py │ │ ├── test-issue126.py │ │ ├── test-issue130.py │ │ ├── test-issue156.py │ │ ├── test-issue167.py │ │ ├── test-issue193.py │ │ ├── test-issue244.py │ │ ├── test-issue256.py │ │ ├── test-issue266.py │ │ ├── test-issue31.py │ │ ├── test-issue379.py │ │ ├── test-issue691.py │ │ ├── test-issue74.py │ │ └── test-issue914.py │ ├── line_attribution_tests/ │ │ ├── line_after_final_alloc.py │ │ ├── loop_below_threshold.py │ │ ├── loop_with_multiple_lines.py │ │ ├── loop_with_one_alloc.py │ │ └── loop_with_two_allocs.py │ ├── multiprocessing_test.py │ ├── new_mp_test.py │ ├── optimized/ │ │ ├── bm_pyflate.py │ │ ├── bm_raytrace.py │ │ ├── bm_richards.py │ │ ├── bm_scimark.py │ │ └── bm_spectral_norm.py │ ├── original/ │ │ ├── bm_mdp.py │ │ ├── bm_pyflate.py │ │ ├── bm_raytrace.py │ │ ├── bm_richards.py │ │ ├── bm_scimark.py │ │ ├── bm_spectral_norm.py │ │ └── bm_sympy.py │ ├── pool-test.py │ ├── pool_spawn_test.py │ ├── profile_annotation_test.py │ ├── signal_test.py │ ├── small_mp_test.py │ ├── smoketest.py │ ├── smoketest_line_invalidation.py │ ├── smoketest_pool_spawn.py │ ├── smoketest_profile_decorator.py │ ├── test-martinheinz.py │ ├── test-memory.py │ ├── test-pprofile.py │ ├── test-size.py │ ├── test_async_demo.py │ ├── test_sparkline.py │ ├── test_timers.py │ ├── test_tracer.py │ ├── testflask-driver.py │ ├── testflask.py │ ├── testme.py │ ├── testpyt.py │ ├── testtf.py │ ├── threads-test.py │ └── torchtest.py └── tests/ ├── test_async_profiling.py ├── test_coverup_1.py ├── test_coverup_106.py ├── test_coverup_107.py ├── test_coverup_109.py ├── test_coverup_11.py ├── test_coverup_110.py ├── test_coverup_112.py ├── test_coverup_113.py ├── test_coverup_115.py ├── test_coverup_116.py ├── test_coverup_117.py ├── test_coverup_118.py ├── test_coverup_12.py ├── test_coverup_121.py ├── test_coverup_122.py ├── test_coverup_123.py ├── test_coverup_125.py ├── test_coverup_128.py ├── test_coverup_13.py ├── test_coverup_131.py ├── test_coverup_132.py ├── test_coverup_133.py ├── test_coverup_136.py ├── test_coverup_137.py ├── test_coverup_139.py ├── test_coverup_14.py ├── test_coverup_15.py ├── test_coverup_16.py ├── test_coverup_17.py ├── test_coverup_19.py ├── test_coverup_2.py ├── test_coverup_20.py ├── test_coverup_21.py ├── test_coverup_22.py ├── test_coverup_23.py ├── test_coverup_24.py ├── test_coverup_25.py ├── test_coverup_26.py ├── test_coverup_28.py ├── test_coverup_29.py ├── test_coverup_3.py ├── test_coverup_30.py ├── test_coverup_31.py ├── test_coverup_32.py ├── test_coverup_33.py ├── test_coverup_34.py ├── test_coverup_36.py ├── test_coverup_37.py ├── test_coverup_38.py ├── test_coverup_39.py ├── test_coverup_4.py ├── test_coverup_40.py ├── test_coverup_41.py ├── test_coverup_44.py ├── test_coverup_45.py ├── test_coverup_46.py ├── test_coverup_47.py ├── test_coverup_5.py ├── test_coverup_50.py ├── test_coverup_52.py ├── test_coverup_53.py ├── test_coverup_54.py ├── test_coverup_55.py ├── test_coverup_56.py ├── test_coverup_59.py ├── test_coverup_60.py ├── test_coverup_61.py ├── test_coverup_62.py ├── test_coverup_63.py ├── test_coverup_64.py ├── test_coverup_65.py ├── test_coverup_66.py ├── test_coverup_68.py ├── test_coverup_69.py ├── test_coverup_7.py ├── test_coverup_71.py ├── test_coverup_72.py ├── test_coverup_73.py ├── test_coverup_74.py ├── test_coverup_75.py ├── test_coverup_77.py ├── test_coverup_78.py ├── test_coverup_79.py ├── test_coverup_8.py ├── test_coverup_80.py ├── test_coverup_81.py ├── test_coverup_82.py ├── test_coverup_83.py ├── test_coverup_84.py ├── test_coverup_85.py ├── test_coverup_87.py ├── test_coverup_88.py ├── test_coverup_89.py ├── test_coverup_9.py ├── test_coverup_90.py ├── test_coverup_91.py ├── test_coverup_92.py ├── test_coverup_93.py ├── test_coverup_94.py ├── test_coverup_96.py ├── test_coverup_97.py ├── test_coverup_98.py ├── test_coverup_99.py ├── test_cpu_attribution.py ├── test_jax_profiler.py ├── test_jupyter_display_import.py ├── test_multiprocessing_pool_spawn.py ├── test_multiprocessing_spawn.py ├── test_nested_package_relative_import.py ├── test_on_off_windows.py ├── test_runningstats.py ├── test_scalene_json.py ├── test_tensorflow_profiler.py └── test_torch_profiler.py