---
name: "__gnu_profile::__trace_base"
section: "3cxx"
platform: "linux"
package: "libstdc++-9-doc"
version: "9.3.0-22"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_profile::__trace_base"
---

# \_\_gnu\_profile::\_\_trace\_base(3cxx)

Base class for all trace producers.

## NAME

\_\_gnu\_profile::\_\_trace\_base\< \_\_object\_info, \_\_stack\_info \> - Base class for all trace producers.

## SYNOPSIS

### Public Member Functions

\_\_object\_info \* **\_\_add\_object** (\_\_stack\_t \_\_stack)\
 void **\_\_collect\_warnings** (\_\_warning\_vector\_t &\_\_warnings)\
 void **\_\_free** ()\
 void **\_\_retire\_object** (\_\_object\_info \*\_\_info)\
 void **\_\_write** (FILE \*\_\_f)\

### Protected Attributes

const char \* **\_\_id**\

## Detailed Description

### template\<typename \_\_object\_info, typename \_\_stack\_info\>

class \_\_gnu\_profile::\_\_trace\_base\< \_\_object\_info, \_\_stack\_info \>" Base class for all trace producers.

Definition at line 190 of file profiler\_trace.h.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
