[#llvm-timeTraceProfilerWrite-04] = xref:llvm.adoc[llvm]::timeTraceProfilerWrite :relfileprefix: ../ :mrdocs: `timeTraceProfilerWrite` overloads == Synopses Declared in `<llvm/Support/TimeProfiler.h>` Write profiling data to an output stream. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:llvm/timeTraceProfilerWrite-09.adoc[timeTraceProfilerWrite](xref:llvm/raw_pwrite_stream.adoc[raw_pwrite_stream]& OS); ---- [.small]#xref:llvm/timeTraceProfilerWrite-09.adoc[_» more..._]# Write profiling data to a file. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/Error.adoc[Error] xref:llvm/timeTraceProfilerWrite-08.adoc[timeTraceProfilerWrite]( xref:llvm/StringRef.adoc[StringRef] PreferredFileName, xref:llvm/StringRef.adoc[StringRef] FallbackFileName); ---- [.small]#xref:llvm/timeTraceProfilerWrite-08.adoc[_» more..._]# == Return Value Success, or a StringError if the output file could not be opened. == Parameters [cols="1,4"] |=== | Name| Description | *OS* | Stream that receives the Chrome Trace Event JSON. | *PreferredFileName* | Output path to use when non‐empty. | *FallbackFileName* | Path used when `PreferredFileName` is empty. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#