github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/docs/cli/cozy-stack_tools_heap.md (about)

     1  ## cozy-stack tools heap
     2  
     3  Dump a sampling of memory allocations of live objects
     4  
     5  ### Synopsis
     6  
     7  
     8  This command can be used for memory profiling. It dumps a sampling of memory
     9  allocations of live objects on stdout.
    10  
    11  See https://go.dev/doc/diagnostics#profiling.
    12  
    13  
    14  ```
    15  cozy-stack tools heap [flags]
    16  ```
    17  
    18  ### Examples
    19  
    20  ```
    21  $ cozy-stack tools heap > heap.pprof && go tool pprof heap.pprof
    22  ```
    23  
    24  ### Options
    25  
    26  ```
    27    -h, --help   help for heap
    28  ```
    29  
    30  ### Options inherited from parent commands
    31  
    32  ```
    33        --admin-host string   administration server host (default "localhost")
    34        --admin-port int      administration server port (default 6060)
    35    -c, --config string       configuration file (default "$HOME/.cozy.yaml")
    36        --host string         server host (default "localhost")
    37    -p, --port int            server port (default 8080)
    38  ```
    39  
    40  ### SEE ALSO
    41  
    42  * [cozy-stack tools](cozy-stack_tools.md)	 - Regroup some tools for debugging and tests
    43