Tagged articles
9 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Dec 27, 2024 · Fundamentals

Comprehensive Guide to Using Valgrind for Memory Debugging and Performance Analysis

This article provides an in‑depth overview of Valgrind, explaining its architecture, the capabilities of its various tools such as Memcheck, Cachegrind, Callgrind, Helgrind and Massif, and offers step‑by‑step installation, configuration, and practical code examples for detecting memory errors, leaks, and performance bottlenecks in C/C++ programs.

C++Toolchainleak detection
0 likes · 28 min read
Comprehensive Guide to Using Valgrind for Memory Debugging and Performance Analysis
Huolala Tech
Huolala Tech
May 14, 2024 · Mobile Development

How We Reduced Android OOM Crashes by 99%: Mobile Memory Optimization Secrets

Over the past six months we tackled severe Android memory issues—high OOM crash rates, memory leaks, and large object usage—by implementing systematic profiling, targeted page optimizations, Java and native leak detection tools, and robust monitoring mechanisms, ultimately reducing OOM crashes from 0.8‰ to 0.01‰ and improving app stability.

AndroidMemory ManagementOOM
0 likes · 26 min read
How We Reduced Android OOM Crashes by 99%: Mobile Memory Optimization Secrets
Deepin Linux
Deepin Linux
Apr 18, 2024 · Fundamentals

C++ Memory Management: Concepts, Pitfalls, and Best Practices

This article provides a comprehensive overview of C++ memory management, covering stack vs heap allocation, deep vs shallow copying, common errors such as leaks, dangling pointers, double frees, and offers practical techniques like custom new/delete overloads, smart pointers, RAII, and tools for detecting memory problems.

C++RAIIdynamic allocation
0 likes · 92 min read
C++ Memory Management: Concepts, Pitfalls, and Best Practices
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Feb 6, 2023 · Mobile Development

Memory Monitoring and Leak Detection Practices in NetEase Cloud Music Android App

The NetEase Cloud Music Android team built a comprehensive memory‑monitoring system—combining LeakCanary and KOOM for leak detection, instrumented image loading for large‑bitmap tracking, periodic heap and thread metrics collection, and automated ticket generation—to identify, rank, and resolve leaks, oversized resources, and thread‑related OOM risks across development and production.

AndroidKOOMLeakCanary
0 likes · 15 min read
Memory Monitoring and Leak Detection Practices in NetEase Cloud Music Android App
Tencent Music Tech Team
Tencent Music Tech Team
Aug 18, 2021 · Mobile Development

Flutter Memory Management and Leak Prevention in the MOO Music App

The article details MOO Music’s experience with Flutter memory management, explaining the Dart heap, stack, and external memory structures, common leak sources such as missing listener deregistration, unbounded widget lists, retained timers, static references, and third‑party or engine bugs, and offers practical detection and optimization techniques.

FlutterMemory ManagementMobile Development
0 likes · 10 min read
Flutter Memory Management and Leak Prevention in the MOO Music App
Alibaba Cloud Native
Alibaba Cloud Native
May 17, 2018 · Backend Development

Detecting and Preventing Goroutine Leaks in PouchContainer

This article explains what goroutine leaks are, demonstrates how they occur in Alibaba's PouchContainer runtime, and provides practical detection methods and code‑level fixes using net/http/pprof, runtime.NumGoroutine, and CloseNotifier to keep Go services healthy.

Goroutinecontainer-runtimeleak detection
0 likes · 14 min read
Detecting and Preventing Goroutine Leaks in PouchContainer
WeChat Client Technology Team
WeChat Client Technology Team
Dec 15, 2015 · Mobile Development

Android Memory Optimization: Detect Leaks, Cut RAM, Boost Performance

This article outlines comprehensive Android memory optimization strategies, covering leak detection with LeakCanary, system‑level hacks, bitmap handling, runtime monitoring, multi‑process usage, and GC tuning, providing practical code snippets and tools to reduce RAM usage, prevent OOM crashes, and improve app performance.

AndroidGC tuningMemory Optimization
0 likes · 17 min read
Android Memory Optimization: Detect Leaks, Cut RAM, Boost Performance