دالة 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.
الاستخدام وسياق الاستدعاء
تُستخدم دالة القالب TraceArti في نطاق الأسماء apext::log لمعالجة الرسائل المنمذجة خصيصاً لأداة التتبع المتصلة المعنية [SWS_LOG_20000]. وتعمل كواجهة لأدوات التتبع ولم يتم تصميمها للاستدعاء المباشر بواسطة كود التطبيق، بل يتم استدعاؤها داخلياً فقط بواسطة إطار عمل المُسجل عند التبديل بين Logging وTraceArti [SWS_LOG_20000]. وتأخذ الدالة كمعلمة عبر msg_id كائناً محدداً للرسالة من نوع خاص بالتنفيذ، بالإضافة إلى وسائط الرسالة عبر حزمة المعلمات params؛ ولم يتم تعريف قيمة إرجاع [SWS_LOG_20000].
التزامن، ومعالجة الأخطاء، وسلوك وقت التشغيل
تم تحديد الواجهة بأنها آمنة لخيوط المعالجة (thread-safe) وآمنة من الاستثناءات (exception safe عبر noexcept) [SWS_LOG_20000]. لا توجد رموز أخطاء محددة أو آليات للإبلاغ عن الأخطاء، بحيث يتعين على الدالة استبعاد الاستثناءات تماماً [SWS_LOG_20000].
يجب الإبقاء على العبء الزائد لوقت تشغيل TraceArti عند أدنى مستوى ممكن [SWS_LOG_20000]. ولتحقيق ذلك، تذكر المواصفة صراحةً التخصيصات المستندة إلى معلمة القالب MsgId كنهج للحل [SWS_LOG_20000]. تفسير: بالنسبة لتوصيل أداة تتبع، يُرجح أن يعني هذا أنه ينبغي تحسين منطق المعالجة الخاص بالرسالة ويفضل أن يكون ذلك في وقت الترجمة عبر تخصيصات القالب. سؤال Q-24ea7f9557ada827 (مفتوح)
تم إنشاء إشعار الاستخدام هذا آليًا استنادًا إلى مواصفة AUTOSAR لـ R25-11.
دليل المنفِّذ قيد الإعداد (التعقيد 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#f216ca66- Content hash
f216ca66- 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 · الأصل الألماني