microsoft / microsoft/mimalloc

expose mi_stats_t via public interfaces

Open
#558 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
13.4k
Forks
1.2k
Avg merge
4d 45m
Merged PRs (30d)
13

Description

It could be nice if we could:

a) (read-only) access thread local stats
b) (read-only) access _mi_stats_main

getting stats via mi_heap_visit_blocks is just too expensive cpu-wise.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the public interfaces and the existing mi_heap_visit_blocks path mentioned in the issue. Determine how read-only access could expose thread-local statistics and _mi_stats_main without requiring the expensive traversal; done means both statistics sources are publicly accessible with the intended CPU cost and safety guarantees.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.