函数 TraceArti [SWS_LOG_20000] Upstream: RS_LT_00003
template <typename MsgId, typename... Params> void TraceArti (const MsgId &msg_id, const Params &... params) noexcept;
Handles a modeled message, specific to the used trace tool. This function is only called internally by the Logger framework when switching between Log and TraceArti. It represents the interface to trace tools. The runtime overhead of this function shall be kept as minimal as possible, e.g. by using specializations based on the MsgId.
用法与调用上下文
命名空间apext::log中的模板函数TraceArti用于专门针对各连接的跟踪工具处理建模消息[SWS_LOG_20000]。它用作跟踪工具的接口,并非供应用程序代码直接调用,而是在日志记录与 TraceArti 之间切换时,由记录器框架在内部专门调用[SWS_LOG_20000]。作为参数,该函数通过msg_id接收实现特定类型的消息标识对象,并通过参数包params接收消息参数;未定义返回值[SWS_LOG_20000]。
并发性、错误处理和运行时行为
该接口被指定为线程安全(thread-safe)和异常安全(通过noexcept实现 exception safe)[SWS_LOG_20000]。不存在特定错误代码或错误报告机制,因此该函数必须完全杜绝异常[SWS_LOG_20000]。
TraceArti的运行时开销应保持尽可能小[SWS_LOG_20000]。为此,规范明确提到了基于模板参数MsgId的特化作为解决方案[SWS_LOG_20000]。解释:对于跟踪工具的连接,这可能意味着消息特定的处理逻辑最好在编译期通过模板特化进行优化。 问题 Q-24ea7f9557ada827 (未决)
本使用说明基于 R25-11 的 AUTOSAR 规范自动创建。
实现者指南即将推出(复杂度 I1)
| Header-Datei | #include "apext/log/trace_arti.h" |
|---|---|
| Scope | namespace apext::log |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Template-Parameter
| Parameter | Beschreibung |
|---|---|
| MsgIdParams | the type of the msg_id parameter the types of the params parameters |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| msg_id | an implementation-defined type identifying the message object |
| params | the arguments of the message |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| None |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_LOG_20000- Status
- valid/auto-approved
- Version
AUTOSAR/AP/record/SWS_LOG_20000@rel:R25-11#ee5e272f- Content hash
ee5e272f- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_LogAndTrace.pdf#nameddest=SWS_LOG_20000
Status: valid/auto-approved
Version: rel:R25-11#5511a3f8
Versionshistorie & Revisions (2 transitions, 4 revision)
- Current State
valid/auto-approved- Reason
- unchanged
- Campaign
2026-08-sws-log-pilot-after-tool-improvement- Active Version
AUTOSAR/AP/record/SWS_LOG_20000@rel:R25-11#5511a3f8
Recorded Revisions (4):
- R25-11
rel:R25-11#4e0ac6b92026-09-30 - R23-11
rel:R23-11#ab5e92c82026-10-14 - R24-11
rel:R24-11#5511a3f82026-10-14 - R25-11
rel:R25-11#5511a3f82026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-10 | tool | valid/unversioned → invalid/obsolete | spec update after tool improvement | 2026-08-sws-log-pilot-after-tool-improvement |
| 2026-08-10 | tool | invalid/obsolete → valid/auto-approved | unchanged | 2026-08-sws-log-pilot-after-tool-improvement |
gemini-3.8-flash-low· 2026-10-13 · 德文原文