SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Use jemalloc in standalone and add stats.

Open jsdt opened this issue 9 months ago • 6 comments

Description of Changes

This uses jemalloc in standalone instead of mimalloc, unless the target env is msvc. The main reason is that jemalloc exposes better stats, and has a way to do heap profiling. This PR doesn't set up profiling, but it does add stats on jemalloc's memory usage.

Expected complexity level and risk

  1. The risk here is that there could be an issue on some platforms.

Testing

This works on mac and at least some linux platforms.

jsdt avatar Mar 14 '25 17:03 jsdt