https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109361
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Some existing SARIF properties we could generate:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3.20.7 startTimeUtc property

An invocation object MAY contain a property named startTimeUtc whose value is a
string in the format specified in §3.9, specifying the UTC date and time at
which the invocation started.

3.20.8 endTimeUtc property

An invocation object MAY contain a property named endTimeUtc whose value is a
string in the format specified in §3.9, specifying the UTC date and time at
which the invocation ended.

3.38.12 executionTimeUtc property

A threadFlowLocation object MAY contain a property named executionTimeUtc whose
value is a string in the format specified in §3.9, specifying the UTC date and
time at which the thread of execution through the code reached this location.

3.48.2 firstDetectionTimeUtc property

A resultProvenance object MAY contain a property named firstDetectionTimeUtc
whose value is a string in the format specified in §3.9, specifying the UTC
date and time at which the result was first detected. It SHOULD specify the
start time of the run in which the result was first detected, as opposed to,
for example, the time within the run at which the result was actually
generated.

NOTE: Using the run’s start time makes it possible to group together results
that were first detected in the same run.
3.48.3 lastDetectionTimeUtc property

A resultProvenance object MAY contain a property named lastDetectionTimeUtc
whose value is a string in the format specified in §3.9, specifying the UTC
date and time at which the result was most recently detected. It SHOULD specify
the start time of the run in which the result was most recently detected, as
opposed to, for example, the time within the run at which the result was
actually generated.

NOTE: Using the run’s start time makes it possible to group together results
that were detected in the same run.

If lastDetectionTimeUtc is absent, its default value SHALL be determined as
follows:

1.     If run.invocations is present, and if the startTimeUtc property
(§3.20.7) is present on any of the invocation objects (§3.20) in that array,
then the default is the earliest of those times.

2.     Otherwise, there is no default.

3.58.8 timeUtc property

A notification object MAY contain a property named timeUtc whose value is a
string in the format specified §3.9, specifying the UTC date and time at which
the analysis tool generated the notification.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

or perhaps we could use a property bag (e.g. to capture timevar information)

Reply via email to