-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathkieker-20141009-163010944-UTC-constructor-events-example-plots.sh
More file actions
executable file
·72 lines (58 loc) · 2.33 KB
/
kieker-20141009-163010944-UTC-constructor-events-example-plots.sh
File metadata and controls
executable file
·72 lines (58 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/sh
KIEKER_DIR="$1"
OUTDIR="$2"
EXAMPLE_LOG=${KIEKER_DIR}/examples/userguide/ch5--trace-monitoring-aspectj/testdata/kieker-20141009-163010944-UTC-constructor-events/
TOOL_DIR=`mktemp -d`
KIEKER_VERSION="2.0.3-SNAPSHOT"
ZIP_NAME="${KIEKER_DIR}/tools/trace-analysis-${KIEKER_VERSION}.zip"
( cd ${TOOL_DIR} ; unzip -o ${ZIP_NAME} )
TOOL_NAME=`basename ${ZIP_NAME} | sed 's/\.zip$//g'`
TRACE_ANALYSIS_SH=${TOOL_DIR}/$TOOL_NAME/bin/trace-analysis
FILE_CONVERTER_SH=${KIEKER_DIR}/bin/dotPic-fileConverter.sh
# Should be enabled only if the reference pdfs shall be created (otherwise the release test script is broken):
#KIEKER_DIR=${HOME}/git_work/kieker/
#EXAMPLE_LOG=${KIEKER_DIR}/examples/userguide/ch5--trace-monitoring-aspectj/testdata/kieker-20141009-163010944-UTC-constructor-events/
#TRACE_ANALYSIS_SH=${KIEKER_DIR}/bin/trace-analysis.sh
#FILE_CONVERTER_SH=${KIEKER_DIR}/bin/dotPic-fileConverter.sh
#OUTDIR=$(basename "${EXAMPLE_LOG}")"-example-plots77"
#
if ! test -x "${TRACE_ANALYSIS_SH}"; then
echo "${TRACE_ANALYSIS_SH} does not exist or is not executable"
exit 1
fi
if ! test -x "${FILE_CONVERTER_SH}"; then
echo "${TRACE_ANALYSIS_SH} does not exist or is not executable"
exit 1
fi
if ! test -s "${EXAMPLE_LOG}/kieker.map"; then
echo "${EXAMPLE_LOG}/ is no monitoring log"
exit 1
fi
# Should be enabled only if the reference pdfs shall be created (otherwise the release test script is broken):
#if test -e "${OUTDIR}"; then
# echo "${OUTDIR} exists; remove it"
# exit 1
#fi
#mkdir "${OUTDIR}"
#
# Dependency graphs, equivalence classes
${TRACE_ANALYSIS_SH} \
--verbose \
--inputdirs "${EXAMPLE_LOG}" --outputdir "./${OUTDIR}" \
--plot-Deployment-Component-Dependency-Graph none\
--plot-Assembly-Component-Dependency-Graph none\
--plot-Container-Dependency-Graph \
--plot-Deployment-Operation-Dependency-Graph none\
--plot-Assembly-Operation-Dependency-Graph none\
--plot-Aggregated-Deployment-Call-Tree \
--plot-Aggregated-Assembly-Call-Tree \
--print-Deployment-Equivalence-Classes \
--print-Assembly-Equivalence-Classes \
--short-labels \
--print-System-Model
# Should be enabled only if the reference pdfs shall be created (otherwise the release test script is broken):
#${FILE_CONVERTER_SH} "./${OUTDIR}" pdf
#for f in "./${OUTDIR}"/*.pdf; do
# pdfcrop "$f"
#done
#