bachelorThesis/report/figures/machine_time_waste.tex

33 lines
1.4 KiB
TeX
Raw Normal View History

2021-05-12 12:15:49 +00:00
\newcommand{\machinetimewaste}[3][0]{
2021-05-19 19:04:11 +00:00
\begin{subfigure}{\ifnum#1=1 0.5\textwidth \else 0.33\textwidth \fi}
2021-05-12 12:15:49 +00:00
\vspace{0.5cm}
%\ifnum#1=1 \hspace{0.25\textwidth} \fi
\begin{minipage}[c]{\textwidth}%
2021-05-19 19:04:11 +00:00
\resizebox{\textwidth}{!}{\input{figures/machine_time_waste/#3}}
2021-05-12 12:15:49 +00:00
\end{minipage}
%\hfill
2021-05-19 19:04:11 +00:00
%\caption{#2}
2021-05-12 12:15:49 +00:00
\end{subfigure}}
\begin{figure}
2021-05-19 19:04:11 +00:00
\machinetimewaste[1]{2011 data}{cluster_2011.pgf}
\machinetimewaste[1]{2019 data}{cluster_all.pgf}
2021-05-19 20:20:49 +00:00
\caption{Relative task time (in milliseconds) spent in each execution phase
w.r.t. task termination in 2011 and 2019 traces. X axis shows task termination type,
Y axis shows total time \% spent. Colors break down the time in execution phases. ``Unknown'' execution times are
2019 specific and correspond to event time transitions that are not consider ``typical'' by Google.}\label{fig:machinetimewaste-rel}
2021-05-12 12:15:49 +00:00
\end{figure}
\begin{figure}
2021-05-19 19:04:11 +00:00
\machinetimewaste{Cluster A}{cluster_a.pgf}
\machinetimewaste{Cluster B}{cluster_b.pgf}
\machinetimewaste{Cluster C}{cluster_c.pgf}
\machinetimewaste{Cluster D}{cluster_d.pgf}
\machinetimewaste{Cluster E}{cluster_e.pgf}
\machinetimewaste{Cluster F}{cluster_f.pgf}
\machinetimewaste{Cluster G}{cluster_g.pgf}
\machinetimewaste{Cluster H}{cluster_h.pgf}
2021-05-19 20:20:49 +00:00
\caption{Relative task time (in milliseconds) spent in each execution phase w.r.t. clusters in the
2019 trace. Refer to figure~\ref{fig:machinetimewaste-rel} for axes description.}\label{fig:machinetimewaste-rel-csts}
2021-05-12 12:15:49 +00:00
\end{figure}