mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 01:27:19 +03:00
Unlike prof_sample which is supported only with profiling mode active, prof_threshold is intended to be an always-supported allocation callback with much less overhead. The usage of the threshold allows performance critical callers to change program execution based on the callback: e.g. drop caches when memory becomes high or to predict the program is about to OOM ahead of time using peak memory watermarks.
This commit is contained in:
parent
ef8e512e29
commit
257e64b968
22 changed files with 246 additions and 0 deletions
|
|
@ -83,6 +83,7 @@
|
|||
<ClCompile Include="..\..\..\..\src\prof_recent.c" />
|
||||
<ClCompile Include="..\..\..\..\src\prof_stats.c" />
|
||||
<ClCompile Include="..\..\..\..\src\prof_sys.c" />
|
||||
<ClCompile Include="..\..\..\..\src\prof_threshold.c" />
|
||||
<ClCompile Include="..\..\..\..\src\psset.c" />
|
||||
<ClCompile Include="..\..\..\..\src\rtree.c" />
|
||||
<ClCompile Include="..\..\..\..\src\safety_check.c" />
|
||||
|
|
|
|||
|
|
@ -133,6 +133,9 @@
|
|||
<ClCompile Include="..\..\..\..\src\prof_sys.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\src\prof_threshold.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\src\psset.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@
|
|||
<ClCompile Include="..\..\..\..\src\prof_recent.c" />
|
||||
<ClCompile Include="..\..\..\..\src\prof_stats.c" />
|
||||
<ClCompile Include="..\..\..\..\src\prof_sys.c" />
|
||||
<ClCompile Include="..\..\..\..\src\prof_threshold.c" />
|
||||
<ClCompile Include="..\..\..\..\src\psset.c" />
|
||||
<ClCompile Include="..\..\..\..\src\rtree.c" />
|
||||
<ClCompile Include="..\..\..\..\src\safety_check.c" />
|
||||
|
|
|
|||
|
|
@ -133,6 +133,9 @@
|
|||
<ClCompile Include="..\..\..\..\src\prof_sys.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\src\prof_threshold.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\src\psset.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@
|
|||
<ClCompile Include="..\..\..\..\src\prof_recent.c" />
|
||||
<ClCompile Include="..\..\..\..\src\prof_stats.c" />
|
||||
<ClCompile Include="..\..\..\..\src\prof_sys.c" />
|
||||
<ClCompile Include="..\..\..\..\src\prof_threshold.c" />
|
||||
<ClCompile Include="..\..\..\..\src\psset.c" />
|
||||
<ClCompile Include="..\..\..\..\src\rtree.c" />
|
||||
<ClCompile Include="..\..\..\..\src\safety_check.c" />
|
||||
|
|
|
|||
|
|
@ -133,6 +133,9 @@
|
|||
<ClCompile Include="..\..\..\..\src\prof_sys.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\src\prof_threshold.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\src\psset.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@
|
|||
<ClCompile Include="..\..\..\..\src\prof_recent.c" />
|
||||
<ClCompile Include="..\..\..\..\src\prof_stats.c" />
|
||||
<ClCompile Include="..\..\..\..\src\prof_sys.c" />
|
||||
<ClCompile Include="..\..\..\..\src\prof_threshold.c" />
|
||||
<ClCompile Include="..\..\..\..\src\psset.c" />
|
||||
<ClCompile Include="..\..\..\..\src\rtree.c" />
|
||||
<ClCompile Include="..\..\..\..\src\safety_check.c" />
|
||||
|
|
|
|||
|
|
@ -133,6 +133,9 @@
|
|||
<ClCompile Include="..\..\..\..\src\prof_sys.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\src\prof_threshold.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\src\psset.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue