---
layout: doc
title: general / dump_stralloc
---
# dump_stralloc

### NAME

    dump_stralloc() - dump string allocation diagnostics

### SYNOPSIS

    string dump_stralloc( string file );

### DESCRIPTION

    Writes the driver's string allocation diagnostics to file and returns
    the same diagnostic text as a string.

    The file path is checked through the driver's normal valid_write()
    mechanism.  If the path is invalid, or the file cannot be opened for
    writing, an error is raised.

    This efun is intended for driver and memory debugging.

### SEE ALSO

    check_memory(3), dump_jemalloc(3), valid_write(4)
