[#BloombergLP-balb-PerformanceMonitor-registerPid]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/PerformanceMonitor.adoc[PerformanceMonitor]::registerPid
:relfileprefix: ../../../
:mrdocs:

Register the specified process `pid` having the specified user&hyphen;defined `description` with this performance monitor&period; After registration, performance statistics will be collected for the `pid` upon invocation of the `collect` function&period; A `pid` value of zero is translated to the current process id&period; Return 0 on success or a non&hyphen;zero value otherwise&period;

== Synopsis

Declared in `&lt;balb&lowbar;performancemonitor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
registerPid(
    int pid,
    xref:bsl/string.adoc[bsl::string] const& description);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
