# Memory Profiling Part 2. Memory Usage Case Study

DevFeed: [Memory Profiling Part 2. Memory Usage Case Study](<https://devfeed.tech/articles/memory-profiling-part-2-memory-usage-case-study-13637.md>)

Original publisher: [Read original article](<https://easyperf.net/blog/2024/02/12/Memory-Profiling-Part2>)

Author: Denis Bakhvalov

Published: 2024-02-12T05:00:00Z

Content type: tutorial

Language: en

Sources: [Denis Bakhvalov](<https://devfeed.tech/sources/denis-bakhvalov.md>)

Topics: [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Ubuntu](<https://devfeed.tech/topics/ubuntu.md>), [Windows](<https://devfeed.tech/topics/windows.md>), [cpu](<https://devfeed.tech/topics/cpu.md>), [intel](<https://devfeed.tech/topics/intel.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [book-chapters](<https://devfeed.tech/tags/book-chapters.md>), [case-study](<https://devfeed.tech/tags/case-study.md>), [intel](<https://devfeed.tech/tags/intel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [performance-analysis](<https://devfeed.tech/tags/performance-analysis.md>), [processor](<https://devfeed.tech/tags/processor.md>), [profiling](<https://devfeed.tech/tags/profiling.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>), [windows](<https://devfeed.tech/tags/windows.md>)

## AI overview

This article presents a memory-usage case study of Stockfish's built-in benchmark using heaptrack on Linux, with comparisons to Mtuner on Windows. It examines memory consumption and allocation patterns, including long-lived and temporary allocations.

## Source excerpt

Subscribe to my newsletter, support me on Patreon or by PayPal donation. Now, let's take a look at how to profile the memory usage of a real-world application. We will use heaptrack, an open-sourced heap memory profiler for Linux developed by KDE. Ubuntu users can install it very easily with . Heaptrack can find places in the code where the largest and most frequent allocations happen among many other things. On Windows, you can use Mtuner which has similar1 capabilities as Heaptrack.