mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00

* Add mimalloc v2.12 Modified src/alloc.c to remove include of alloc-override.c and not compile new handler. Did not include the following files: - include/mimalloc-new-delete.h - include/mimalloc-override.h - src/alloc-override-osx.c - src/alloc-override.c - src/static.c - src/region.c mimalloc is thread safe and shares a single heap across all runtimes, therefore finalization and getting global allocated blocks across all runtimes is different. * mimalloc: minimal changes for use in Python: - remove debug spam for freeing large allocations - use same bytes (0xDD) for freed allocations in CPython and mimalloc This is important for the test_capi debug memory tests * Don't export mimalloc symbol in libpython. * Enable mimalloc as Python allocator option. * Add mimalloc MIT license. * Log mimalloc in Lib/test/pythoninfo.py. * Document new mimalloc support. * Use macro defs for exports as done in: https://github.com/python/cpython/pull/31164/ Co-authored-by: Sam Gross <colesbury@gmail.com> Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
61 lines
2.5 KiB
Text
61 lines
2.5 KiB
Text
<WindowsPerformanceRecorder Version="1.0">
|
|
<Profiles>
|
|
<SystemCollector Id="WPR_initiated_WprApp_WPR_System_Collector" Name="WPR_initiated_WprApp_WPR System Collector">
|
|
<BufferSize Value="1024" />
|
|
<Buffers Value="100" />
|
|
</SystemCollector>
|
|
<EventCollector Id="Mimalloc_Collector" Name="Mimalloc Collector">
|
|
<BufferSize Value="1024" />
|
|
<Buffers Value="100" />
|
|
</EventCollector>
|
|
<SystemProvider Id="WPR_initiated_WprApp_WPR_System_Collector_Provider">
|
|
<Keywords>
|
|
<Keyword Value="Loader" />
|
|
</Keywords>
|
|
</SystemProvider>
|
|
<EventProvider Id="MimallocEventProvider" Name="138f4dbb-ee04-4899-aa0a-572ad4475779" NonPagedMemory="true" Stack="true">
|
|
<EventFilters FilterIn="true">
|
|
<EventId Value="100" />
|
|
<EventId Value="101" />
|
|
</EventFilters>
|
|
</EventProvider>
|
|
<Profile Id="CustomHeap.Verbose.File" Name="CustomHeap" Description="RunningProfile:CustomHeap.Verbose.File" LoggingMode="File" DetailLevel="Verbose">
|
|
<ProblemCategories>
|
|
<ProblemCategory Value="Resource Analysis" />
|
|
</ProblemCategories>
|
|
<Collectors>
|
|
<SystemCollectorId Value="WPR_initiated_WprApp_WPR_System_Collector">
|
|
<SystemProviderId Value="WPR_initiated_WprApp_WPR_System_Collector_Provider" />
|
|
</SystemCollectorId>
|
|
<EventCollectorId Value="Mimalloc_Collector">
|
|
<EventProviders>
|
|
<EventProviderId Value="MimallocEventProvider" >
|
|
<Keywords>
|
|
<Keyword Value="100"/>
|
|
<Keyword Value="101"/>
|
|
</Keywords>
|
|
</EventProviderId>
|
|
</EventProviders>
|
|
</EventCollectorId>
|
|
</Collectors>
|
|
<TraceMergeProperties>
|
|
<TraceMergeProperty Id="BaseVerboseTraceMergeProperties" Name="BaseTraceMergeProperties">
|
|
<DeletePreMergedTraceFiles Value="true" />
|
|
<FileCompression Value="false" />
|
|
<InjectOnly Value="false" />
|
|
<SkipMerge Value="false" />
|
|
<CustomEvents>
|
|
<CustomEvent Value="ImageId" />
|
|
<CustomEvent Value="BuildInfo" />
|
|
<CustomEvent Value="VolumeMapping" />
|
|
<CustomEvent Value="EventMetadata" />
|
|
<CustomEvent Value="PerfTrackMetadata" />
|
|
<CustomEvent Value="WinSAT" />
|
|
<CustomEvent Value="NetworkInterface" />
|
|
</CustomEvents>
|
|
</TraceMergeProperty>
|
|
</TraceMergeProperties>
|
|
</Profile>
|
|
</Profiles>
|
|
</WindowsPerformanceRecorder>
|
|
|