<ahref="#pub-methods">Public Member Functions</a>|
<ahref="classcrashpad_1_1test_1_1TestProcessSnapshot-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">crashpad::test::TestProcessSnapshot Class Reference<spanclass="mlabels"><spanclass="mlabel">final</span></span></div></div>
</div><!--header-->
<divclass="contents">
<p>A test <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> that can carry arbitrary data for testing purposes.
<areahref="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. "alt="crashpad::ProcessSnapshot"shape="rect"coords="0,0,217,24"/>
<trclass="memdesc:a2da3d9c33605bb16d0a7fcb2cc4621b0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the system snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a61e52051b302138d1aae28d8d36c9bfd"title="Returns a SystemSnapshot reflecting the characteristics of the system that ran the snapshot process a...">System()</a>. <ahref="#a2da3d9c33605bb16d0a7fcb2cc4621b0">More...</a><br/></td></tr>
<trclass="memdesc:aa272a06010291a8d645ef55054c62eb8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a thread snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#aa90fabf794e8aa436dc637de4a7e8bba"title="Returns ThreadSnapshot objects reflecting the threads (lightweight processes) existing in the snapsho...">Threads()</a>. <ahref="#aa272a06010291a8d645ef55054c62eb8">More...</a><br/></td></tr>
<trclass="memdesc:a1de57ba1bc25ae21fa28ce3296842399"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a module snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a43275d7a32de7b074d9483e845911577"title="Returns ModuleSnapshot objects reflecting the code modules (binary images) loaded into the snapshot p...">Modules()</a>. <ahref="#a1de57ba1bc25ae21fa28ce3296842399">More...</a><br/></td></tr>
<trclass="memdesc:a0fb837d7a4f7e26715e1667da9deb9d9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds an unloaded module snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a78cc8bba1f8bbc0347dcf0e1417e9a4c"title="Returns UnloadedModuleSnapshot objects reflecting the code modules the were recorded as unloaded at t...">UnloadedModules()</a>. <ahref="#a0fb837d7a4f7e26715e1667da9deb9d9">More...</a><br/></td></tr>
<trclass="memdesc:a25effc0085be65c410fcfd57218b6c62"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the exception snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#aa0d8839f1e8c482bd9d7794e7475a541"title="Returns an ExceptionSnapshot reflecting the exception that the snapshot process sustained to trigger ...">Exception()</a>. <ahref="#a25effc0085be65c410fcfd57218b6c62">More...</a><br/></td></tr>
<trclass="memdesc:a7acdd5afb05d3c73f659dc3d2b6e2e9b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a memory map region snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a8dd98712806a8f9da23e47cca3cafed1"title="Returns MemoryMapRegionSnapshot objects reflecting the regions of the memory map in the snapshot proc...">MemoryMap()</a>. <ahref="#a7acdd5afb05d3c73f659dc3d2b6e2e9b">More...</a><br/></td></tr>
<trclass="memdesc:a1e4c4a05f01270dba20978eb32f76e5a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a handle snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a230acc3f1dd1cf8f4d0b2e84e106f292"title="Returns HandleSnapshot objects reflecting the open handles in the snapshot process at the time of the...">Handles()</a>. <ahref="#a1e4c4a05f01270dba20978eb32f76e5a">More...</a><br/></td></tr>
<trclass="memdesc:ad8660f79a14f789431c344d3842f0827"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Add a memory snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a5d76a5f6ea3ed0cb59b39694684f8cf2"title="Returns a vector of additional memory blocks that should be included in a minidump. ">ExtraMemory()</a>. <ahref="#ad8660f79a14f789431c344d3842f0827">More...</a><br/></td></tr>
<trclass="memdesc:a7775b15c006eb12f2489162c4faf54af"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the snapshot process’ process ID. <br/></td></tr>
<trclass="memdesc:a29c62f7052604ce478a04a92d458fe74"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the snapshot process’ parent process’ process ID. <br/></td></tr>
<trclass="memdesc:abc33336e0959720987626da836e87259"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the time that the snapshot was taken in <em>snapshot_time</em>. <ahref="#abc33336e0959720987626da836e87259">More...</a><br/></td></tr>
<trclass="memdesc:a32792c433f88bf0f2499c00d9769e5aa"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the time that the snapshot process was started in <em>start_time</em>. <ahref="#a32792c433f88bf0f2499c00d9769e5aa">More...</a><br/></td></tr>
<trclass="memdesc:ad608647c26f108ba2712b791b4365589"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the snapshot process’ CPU usage times in <em>user_time</em> and <em>system_time</em>. <ahref="#ad608647c26f108ba2712b791b4365589">More...</a><br/></td></tr>
<trclass="memdesc:a4f62d1d10c6baaa3b9c4f2c08762f708"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a UUID identifying the event that the snapshot describes. <ahref="#a4f62d1d10c6baaa3b9c4f2c08762f708">More...</a><br/></td></tr>
<trclass="memdesc:a6eb9bf88dc221ccc3f891f3259621c79"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a UUID identifying the client that the snapshot represents. <ahref="#a6eb9bf88dc221ccc3f891f3259621c79">More...</a><br/></td></tr>
<trclass="memdesc:aec23063142af82dcef82d52cfc0774a0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns key-value string annotations recorded for the process, system, or snapshot producer. <ahref="#aec23063142af82dcef82d52cfc0774a0">More...</a><br/></td></tr>
<trclass="memdesc:a61e52051b302138d1aae28d8d36c9bfd"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a <aclass="el"href="classcrashpad_1_1SystemSnapshot.html"title="An abstract interface to a snapshot representing the state of a system, comprising an operating syste...">SystemSnapshot</a> reflecting the characteristics of the system that ran the snapshot process at the time of the snapshot. <ahref="#a61e52051b302138d1aae28d8d36c9bfd">More...</a><br/></td></tr>
<trclass="memdesc:aa90fabf794e8aa436dc637de4a7e8bba"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns <aclass="el"href="classcrashpad_1_1ThreadSnapshot.html"title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot...">ThreadSnapshot</a> objects reflecting the threads (lightweight processes) existing in the snapshot process at the time of the snapshot. <ahref="#aa90fabf794e8aa436dc637de4a7e8bba">More...</a><br/></td></tr>
<trclass="memdesc:a43275d7a32de7b074d9483e845911577"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns <aclass="el"href="classcrashpad_1_1ModuleSnapshot.html"title="An abstract interface to a snapshot representing a code module (binary image) loaded into a snapshot ...">ModuleSnapshot</a> objects reflecting the code modules (binary images) loaded into the snapshot process at the time of the snapshot. <ahref="#a43275d7a32de7b074d9483e845911577">More...</a><br/></td></tr>
<trclass="memdesc:a78cc8bba1f8bbc0347dcf0e1417e9a4c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns <aclass="el"href="classcrashpad_1_1UnloadedModuleSnapshot.html"title="Information about an unloaded module that was previously loaded into a snapshot process. ">UnloadedModuleSnapshot</a> objects reflecting the code modules the were recorded as unloaded at the time of the snapshot. <ahref="#a78cc8bba1f8bbc0347dcf0e1417e9a4c">More...</a><br/></td></tr>
<trclass="memdesc:aa0d8839f1e8c482bd9d7794e7475a541"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns an <aclass="el"href="classcrashpad_1_1ExceptionSnapshot.html"title="An abstract interface to a snapshot representing an exception that a snapshot process sustained and t...">ExceptionSnapshot</a> reflecting the exception that the snapshot process sustained to trigger the snapshot being taken. <ahref="#aa0d8839f1e8c482bd9d7794e7475a541">More...</a><br/></td></tr>
<trclass="memdesc:a8dd98712806a8f9da23e47cca3cafed1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns <aclass="el"href="classcrashpad_1_1MemoryMapRegionSnapshot.html"title="An abstract interface to a snapshot representing a region of the memory map present in the snapshot p...">MemoryMapRegionSnapshot</a> objects reflecting the regions of the memory map in the snapshot process at the time of the snapshot. <ahref="#a8dd98712806a8f9da23e47cca3cafed1">More...</a><br/></td></tr>
<trclass="memdesc:a230acc3f1dd1cf8f4d0b2e84e106f292"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns <aclass="el"href="structcrashpad_1_1HandleSnapshot.html">HandleSnapshot</a> objects reflecting the open handles in the snapshot process at the time of the snapshot. <ahref="#a230acc3f1dd1cf8f4d0b2e84e106f292">More...</a><br/></td></tr>
<trclass="memdesc:a5d76a5f6ea3ed0cb59b39694684f8cf2"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a vector of additional memory blocks that should be included in a minidump. <ahref="#a5d76a5f6ea3ed0cb59b39694684f8cf2">More...</a><br/></td></tr>
<divclass="textblock"><p>A test <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> that can carry arbitrary data for testing purposes. </p>
</div><h2class="groupheader">Member Function Documentation</h2>
<p>Add a memory snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a5d76a5f6ea3ed0cb59b39694684f8cf2"title="Returns a vector of additional memory blocks that should be included in a minidump. ">ExtraMemory()</a>. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">extra_memory</td><td>The memory snapshot that will be included in <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a5d76a5f6ea3ed0cb59b39694684f8cf2"title="Returns a vector of additional memory blocks that should be included in a minidump. ">ExtraMemory()</a>. The <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html"title="A test ProcessSnapshot that can carry arbitrary data for testing purposes. ">TestProcessSnapshot</a> object takes ownership of <em>extra_memory</em>. </td></tr>
<p>Adds a handle snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a230acc3f1dd1cf8f4d0b2e84e106f292"title="Returns HandleSnapshot objects reflecting the open handles in the snapshot process at the time of the...">Handles()</a>. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">handle</td><td>The handle snapshot that will be included in <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a230acc3f1dd1cf8f4d0b2e84e106f292"title="Returns HandleSnapshot objects reflecting the open handles in the snapshot process at the time of the...">Handles()</a>. </td></tr>
<p>Adds a memory map region snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a8dd98712806a8f9da23e47cca3cafed1"title="Returns MemoryMapRegionSnapshot objects reflecting the regions of the memory map in the snapshot proc...">MemoryMap()</a>. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">region</td><td>The memory map region snapshot that will be included in <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a8dd98712806a8f9da23e47cca3cafed1"title="Returns MemoryMapRegionSnapshot objects reflecting the regions of the memory map in the snapshot proc...">MemoryMap()</a>. The <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html"title="A test ProcessSnapshot that can carry arbitrary data for testing purposes. ">TestProcessSnapshot</a> object takes ownership of <em>region</em>. </td></tr>
<p>Adds a module snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a43275d7a32de7b074d9483e845911577"title="Returns ModuleSnapshot objects reflecting the code modules (binary images) loaded into the snapshot p...">Modules()</a>. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">module</td><td>The module snapshot that will be included in <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a43275d7a32de7b074d9483e845911577"title="Returns ModuleSnapshot objects reflecting the code modules (binary images) loaded into the snapshot p...">Modules()</a>. The <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html"title="A test ProcessSnapshot that can carry arbitrary data for testing purposes. ">TestProcessSnapshot</a> object takes ownership of <em>module</em>. </td></tr>
<p>Adds an unloaded module snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a78cc8bba1f8bbc0347dcf0e1417e9a4c"title="Returns UnloadedModuleSnapshot objects reflecting the code modules the were recorded as unloaded at t...">UnloadedModules()</a>. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">unloaded_module</td><td>The unloaded module snapshot that will be included in <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a78cc8bba1f8bbc0347dcf0e1417e9a4c"title="Returns UnloadedModuleSnapshot objects reflecting the code modules the were recorded as unloaded at t...">UnloadedModules()</a>. </td></tr>
<p>Adds a thread snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#aa90fabf794e8aa436dc637de4a7e8bba"title="Returns ThreadSnapshot objects reflecting the threads (lightweight processes) existing in the snapsho...">Threads()</a>. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">thread</td><td>The thread snapshot that will be included in <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#aa90fabf794e8aa436dc637de4a7e8bba"title="Returns ThreadSnapshot objects reflecting the threads (lightweight processes) existing in the snapsho...">Threads()</a>. The <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html"title="A test ProcessSnapshot that can carry arbitrary data for testing purposes. ">TestProcessSnapshot</a> object takes ownership of <em>thread</em>. </td></tr>
<p>Returns key-value string annotations recorded for the process, system, or snapshot producer. </p>
<p>This method retrieves annotations recorded for a process. These annotations are intended for diagnostic use, including crash analysis. “Simple annotations” are structured as a sequence of key-value pairs, where all keys and values are strings. These are referred to in Chrome as “crash keys.”</p>
<p>Annotations stored here may reflect the process, system, or snapshot producer. Most annotations not under the client’s direct control will be retrievable by this method. For clients such as Chrome, this includes the product name and version.</p>
<p>Additional per-module annotations may be obtained by calling <aclass="el"href="classcrashpad_1_1ModuleSnapshot.html#a4d1328fda3e91a4c25369b5fcc4cf2f6"title="Returns key-value string annotations recorded in the module. ">ModuleSnapshot::AnnotationsSimpleMap()</a>. </p>
<p>Returns a UUID identifying the client that the snapshot represents. </p>
<p>Client identification is within the scope of the application, but it is expected that the identifier will be unique for an instance of Crashpad monitoring an application or set of applications for a user. The identifier shall remain stable over time.</p>
<p>If no identifier is available, this field will contain zeroes. </p>
<p>Returns an <aclass="el"href="classcrashpad_1_1ExceptionSnapshot.html"title="An abstract interface to a snapshot representing an exception that a snapshot process sustained and t...">ExceptionSnapshot</a> reflecting the exception that the snapshot process sustained to trigger the snapshot being taken. </p>
<dlclass="section return"><dt>Returns</dt><dd>An <aclass="el"href="classcrashpad_1_1ExceptionSnapshot.html"title="An abstract interface to a snapshot representing an exception that a snapshot process sustained and t...">ExceptionSnapshot</a> object. The caller does not take ownership of this object, it is scoped to the lifetime of the <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> object that it was obtained from. If the snapshot is not a result of an exception, returns <code>nullptr</code>. </dd></dl>
<p>Returns a vector of additional memory blocks that should be included in a minidump. </p>
<dlclass="section return"><dt>Returns</dt><dd>An vector of <aclass="el"href="classcrashpad_1_1MemorySnapshot.html"title="An abstract interface to a snapshot representing a region of memory present in a snapshot process...">MemorySnapshot</a> objects that will be included in the crash dump. The caller does not take ownership of these objects, they are scoped to the lifetime of the <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> object that they were obtained from. </dd></dl>
<p>Returns <aclass="el"href="structcrashpad_1_1HandleSnapshot.html">HandleSnapshot</a> objects reflecting the open handles in the snapshot process at the time of the snapshot. </p>
<dlclass="section return"><dt>Returns</dt><dd>A vector of <aclass="el"href="structcrashpad_1_1HandleSnapshot.html">HandleSnapshot</a> objects. </dd></dl>
<p>Returns <aclass="el"href="classcrashpad_1_1MemoryMapRegionSnapshot.html"title="An abstract interface to a snapshot representing a region of the memory map present in the snapshot p...">MemoryMapRegionSnapshot</a> objects reflecting the regions of the memory map in the snapshot process at the time of the snapshot. </p>
<dlclass="section return"><dt>Returns</dt><dd>A vector of <aclass="el"href="classcrashpad_1_1MemoryMapRegionSnapshot.html"title="An abstract interface to a snapshot representing a region of the memory map present in the snapshot p...">MemoryMapRegionSnapshot</a> objects. The caller does not take ownership of these objects, they are scoped to the lifetime of the <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> object that they were obtained from. </dd></dl>
<p>Returns <aclass="el"href="classcrashpad_1_1ModuleSnapshot.html"title="An abstract interface to a snapshot representing a code module (binary image) loaded into a snapshot ...">ModuleSnapshot</a> objects reflecting the code modules (binary images) loaded into the snapshot process at the time of the snapshot. </p>
<dlclass="section return"><dt>Returns</dt><dd>A vector of <aclass="el"href="classcrashpad_1_1ModuleSnapshot.html"title="An abstract interface to a snapshot representing a code module (binary image) loaded into a snapshot ...">ModuleSnapshot</a> objects. The caller does not take ownership of these objects, they are scoped to the lifetime of the <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> object that they were obtained from. </dd></dl>
<p>Returns the snapshot process’ CPU usage times in <em>user_time</em> and <em>system_time</em>. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">user_time</td><td>The time that the process has spent executing in user mode. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">system_time</td><td>The time that the process has spent executing in system (kernel) mode. </td></tr>
<p>Normally, process uptime in wall clock time can be computed as <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#abc33336e0959720987626da836e87259"title="Returns the time that the snapshot was taken in snapshot_time. ">SnapshotTime()</a>−<aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a32792c433f88bf0f2499c00d9769e5aa"title="Returns the time that the snapshot process was started in start_time. ">ProcessStartTime()</a>, but this cannot be guaranteed in cases where the real-time clock has been set during the snapshot process’ lifetime.</p>
<p>Returns a UUID identifying the event that the snapshot describes. </p>
<p>This provides a stable identifier for a crash even as the report is converted to different formats, provided that all formats support storing a crash report ID. When a report is originally created, a report ID should be assigned. From that point on, any operations involving the same report should preserve the same report ID.</p>
<p>If no identifier is available, this field will contain zeroes. </p>
<p>Sets the exception snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#aa0d8839f1e8c482bd9d7794e7475a541"title="Returns an ExceptionSnapshot reflecting the exception that the snapshot process sustained to trigger ...">Exception()</a>. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">exception</td><td>The exception snapshot that <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#aa0d8839f1e8c482bd9d7794e7475a541"title="Returns an ExceptionSnapshot reflecting the exception that the snapshot process sustained to trigger ...">Exception()</a> will return. The <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html"title="A test ProcessSnapshot that can carry arbitrary data for testing purposes. ">TestProcessSnapshot</a> object takes ownership of <em>exception</em>. </td></tr>
<p>Sets the system snapshot to be returned by <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a61e52051b302138d1aae28d8d36c9bfd"title="Returns a SystemSnapshot reflecting the characteristics of the system that ran the snapshot process a...">System()</a>. </p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">system</td><td>The system snapshot that <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html#a61e52051b302138d1aae28d8d36c9bfd"title="Returns a SystemSnapshot reflecting the characteristics of the system that ran the snapshot process a...">System()</a> will return. The <aclass="el"href="classcrashpad_1_1test_1_1TestProcessSnapshot.html"title="A test ProcessSnapshot that can carry arbitrary data for testing purposes. ">TestProcessSnapshot</a> object takes ownership of <em>system</em>. </td></tr>
<p>Returns the time that the snapshot was taken in <em>snapshot_time</em>. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">snapshot_time</td><td>The time that the snapshot was taken. This is distinct from the time that a <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> object was created or initialized, although it may be that time for <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> objects representing live or recently-crashed process state. </td></tr>
<p>Returns a <aclass="el"href="classcrashpad_1_1SystemSnapshot.html"title="An abstract interface to a snapshot representing the state of a system, comprising an operating syste...">SystemSnapshot</a> reflecting the characteristics of the system that ran the snapshot process at the time of the snapshot. </p>
<dlclass="section return"><dt>Returns</dt><dd>A <aclass="el"href="classcrashpad_1_1SystemSnapshot.html"title="An abstract interface to a snapshot representing the state of a system, comprising an operating syste...">SystemSnapshot</a> object. The caller does not take ownership of this object, it is scoped to the lifetime of the <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> object that it was obtained from. </dd></dl>
<p>Returns <aclass="el"href="classcrashpad_1_1ThreadSnapshot.html"title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot...">ThreadSnapshot</a> objects reflecting the threads (lightweight processes) existing in the snapshot process at the time of the snapshot. </p>
<dlclass="section return"><dt>Returns</dt><dd>A vector of <aclass="el"href="classcrashpad_1_1ThreadSnapshot.html"title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot...">ThreadSnapshot</a> objects. The caller does not take ownership of these objects, they are scoped to the lifetime of the <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> object that they were obtained from. </dd></dl>
<p>Returns <aclass="el"href="classcrashpad_1_1UnloadedModuleSnapshot.html"title="Information about an unloaded module that was previously loaded into a snapshot process. ">UnloadedModuleSnapshot</a> objects reflecting the code modules the were recorded as unloaded at the time of the snapshot. </p>
<dlclass="section return"><dt>Returns</dt><dd>A vector of <aclass="el"href="classcrashpad_1_1UnloadedModuleSnapshot.html"title="Information about an unloaded module that was previously loaded into a snapshot process. ">UnloadedModuleSnapshot</a> objects. </dd></dl>