Repository Public MIT Research preview
1% CE03-F08 — Observabilité : la trace d'un tour, ses latences et son coût (figure obligatoire n° 24 du contrat).2% Question : que dit la trace d'un tour sur le temps et le coût de chaque étape, et quelles grandeurs ne faut-il pas mélanger ?3% DONNÉES : CE03-F08-donnees.tex. À gauche : latence SIMULÉE (modèle de coûts déclaré du moteur) d'un tour réel du moteur,4% lue dans sa trace. Au centre : durée MESURÉE sur une machine (relevé daté du moteur, médianes par étape, Python pur).5% En bas : coût FICTIF du même tour, en micro-unités. Corpus synthétique, modèle simulé par des règles.6% Idée : deux échelles de temps qui n'ont rien à voir — elles ne partagent ni axe ni colonne ; et un coût dominé par un poste.7\input{CE03-F08-donnees.tex}%8\begin{tikzpicture}[x=1mm, y=1mm]9 \begin{axis}[atlas axis, scale only axis, at={(21mm,17mm)}, width=47mm, height=27mm, xbar, bar width=2mm, xmin=0, xmax=880,10 axis x line*=bottom, axis y line*=left, y axis line style={draw=none}, ytick style={draw=none}, ytick=data, y dir=reverse,11 symbolic y coords/.expand once=\CEFhuitEtapes, yticklabel style={font=\AtlasSizeTiny, text=atlasFg, align=right},12 xmajorgrids, enlarge y limits={abs=2.1mm}, xtick={0,200,400,600,800}, xlabel={latence simulée (ms)},13 nodes near coords, nodes near coords style={font=\AtlasTabularFont\AtlasSizeTiny, anchor=west, text=atlasFg, inner sep=1.2pt},14 nodes near coords={\pgfmathprintnumber[fixed, precision=1]{\pgfplotspointmeta}}, clip=false,15 title={SIMULÉ : modèle de coûts déclaré}, title style={yshift=-1mm}]16 \edef\atlasplot{\noexpand\addplot[atlas bar flow] coordinates {\CEFhuitSimule};}\atlasplot17 \end{axis}18 \begin{axis}[atlas axis, scale only axis, at={(86mm,17mm)}, width=40mm, height=27mm, xbar, bar width=2mm, xmin=0, xmax=.82,19 axis x line*=bottom, axis y line*=left, y axis line style={draw=none}, ytick style={draw=none}, ytick=data, y dir=reverse,20 symbolic y coords/.expand once=\CEFhuitEtapes, yticklabels={}, xmajorgrids, enlarge y limits={abs=2.1mm},21 xtick={0,.2,.4,.6,.8}, xlabel={durée mesurée (ms)},22 nodes near coords, nodes near coords style={font=\AtlasTabularFont\AtlasSizeTiny, anchor=west, text=atlasFg, inner sep=1.2pt},23 nodes near coords={\pgfmathprintnumber[fixed, precision=3]{\pgfplotspointmeta}}, clip=false,24 title={MESURÉ : relevé du \CEFhuitDate}, title style={yshift=-1mm}]25 \edef\atlasplot{\noexpand\addplot[atlas bar uncertain] coordinates {\CEFhuitMesure};}\atlasplot26 \end{axis}27 % coût fictif du tour : une bande, trois postes28 \node[atlas heading, anchor=west] at (0, 2.4) {coût fictif};29 \pgfmathsetmacro{\xa}{21 + 1.05*\CEFhuitCoutEntree}30 \pgfmathsetmacro{\xb}{\xa + 1.05*\CEFhuitCoutSortie}31 \pgfmathsetmacro{\xc}{\xb + 1.05*\CEFhuitCoutReclassement}32 \fill[atlasFlow, fill opacity=.30] (21, 0) rectangle (\xa, 5); \draw[atlasFlow, line width=.7pt] (21, 0) rectangle (\xa, 5);33 \fill[atlasUncertain, fill opacity=.30] (\xa, 0) rectangle (\xb, 5); \draw[atlasUncertain, line width=.7pt] (\xa, 0) rectangle (\xb, 5);34 \fill[atlasHazard, fill opacity=.30] (\xb, 0) rectangle (\xc, 5); \draw[atlasHazard, line width=.7pt] (\xb, 0) rectangle (\xc, 5);35 \node[atlas label, font=\AtlasSizeTiny] at ({(21+\xa)/2}, 2.5) {entrée \CEFhuitMuEntree};36 \node[atlas label, font=\AtlasSizeTiny] at ({(\xb+\xc)/2}, 2.5) {reclassement de \CEFhuitCandidats\ candidats : \CEFhuitMuReclassement};37 \node[atlas note, anchor=north, align=center] at ({(\xa+\xb)/2}, -1) {sortie \CEFhuitMuSortie};38 \node[atlas note, anchor=west, align=left] at (\xc+1.6, 2.5) {\textbf{\CEFhuitMuTotal} µu};39 \node[atlas note, anchor=north west] at (21, -1) {\CEFhuitEntree\ jetons lus};40 \node[ce nature, anchor=north east] at (142, -1) {synthétique · modèle simulé · unités fictives};41\end{tikzpicture}42