Skip to content

Release v0.2.0

Choose a tag to compare

@officialgabzz officialgabzz released this 16 Dec 18:43
· 8 commits to master since this release

Release v0.2.0 - Memory Profiling

Release Date: April 15, 2020

πŸ’Ύ Memory Profiling

This release adds comprehensive memory tracking capabilities to the profiler.

✨ New Features

Memory Profiler

  • πŸ’Ύ Real-time memory usage tracking with psutil
  • πŸ“Š Peak memory detection using tracemalloc
  • πŸ“ˆ Memory change monitoring per function call
  • πŸ” System memory information retrieval
  • πŸ“‰ Average memory consumption tracking

API Enhancements

  • MemoryProfiler class
  • profile_memory decorator
  • get_memory_info() for system stats
  • Visual memory usage reporting

πŸ”§ Improvements

  • Enhanced profiling results display
  • Better memory statistics formatting
  • Process memory isolation

πŸ“¦ Installation

pip install performance-profiler-optimizer==0.2.0

πŸš€ Usage Example

from performance_profiler import MemoryProfiler

memory_profiler = MemoryProfiler()
memory_profiler.enable()

@memory_profiler.profile_memory
def memory_intensive():
    return [i**2 for i in range(1000000)]

memory_intensive()
memory_profiler.print_results()

πŸ“Š Example Output

πŸ’Ύ Memory Profiling Results
========================================
Function: memory_intensive
  Calls: 3
  Total Memory Allocated: 38.45 MB
  Peak Memory: 45.23 MB
  Average Memory per Call: 12.82 MB
========================================

Full Changelog: v0.1.0...v0.2.0