Title: Memory profiling
Last modified: August 18, 2016

---

# Memory profiling

 *  [gfindlay](https://wordpress.org/support/users/gfindlay/)
 * (@gfindlay)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/memory-profiling/)
 * I’m surprised that no-one has written one yet, unless I just can’t find it.
 * I’m looking for a memory profiling plugin for WP that will give peak memory use
   for the site, individual plugins, etc. to see where the hogs are. I do run a 
   lot of plugins, but I’ve had to push my memory_limit up to 64M which seems a 
   bit excessive.
 * Any thoughts, ideas, suggestions gratefully received.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [gfindlay](https://wordpress.org/support/users/gfindlay/)
 * (@gfindlay)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/memory-profiling/#post-629749)
 * No-one?
 * So no-one is interested in finding out how much memory their site is using/wasting?
   That’s a surprise.
 *  [jbauguss](https://wordpress.org/support/users/jbauguss/)
 * (@jbauguss)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/memory-profiling/#post-629882)
 * Here. create a plugin with this content.
 * <?php
    /* Plugin Name: Mem Usage */
 * function mem_init() {
    $GLOBALS[“memused”] = “memory usage after wordpress init:”.
   memory_get_usage() . ” Bytes“; }
 * function mem_foot() {
    echo $GLOBALS[“memused”]; echo “memory usage after wordpress
   is done: ” . memory_get_usage() . ” Bytes“; print_r($GLOBALS); }
 * add_action(“init”, “mem_init”);
    add_action(“wp_footer”, “mem_foot”); ?>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Memory profiling’ is closed to new replies.

## Tags

 * [profile](https://wordpress.org/support/topic-tag/profile/)

 * 2 replies
 * 2 participants
 * Last reply from: [jbauguss](https://wordpress.org/support/users/jbauguss/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/memory-profiling/#post-629882)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
