diff --git a/README.md b/README.md deleted file mode 100644 index be43e87..0000000 --- a/README.md +++ /dev/null @@ -1,78 +0,0 @@ -PapiPlot -======== - -PapiPlot takes the output generated with [Papify](https://github.com/alejoar/papify) and generates graphs that can be used to evaluate the performance of your ORC-Apps. These graphs come served with a generated html where value tables are included for each graph, so you can check the specific value for each point or copy them into an excel/word document. - -If you place the PapiPlot binary inside the **papi-output** dir, you can run it without any arguments: it will generate the graphs with default parameters. Other options available are: -``` --p [path] Set path to the papi-output folder generated with Papify. If not specified, current directory will be used. - --x [res_x] Change horizontal resolution. If not specified, default is 1680. - --y [res_y] Change vertical resolution. If not specified, default is 1050. - --t [font size] Change tics font size. If not specified, default is 8. - --l [font size] Change labels font size. If not specified, default is 8. - --n No labels will be printed - --h Print help -``` - -##Compile -PapiPlot generates the graphs using **gnuplot**, so make sure it is installed: -``` -sudo apt-get install gnuplot -``` - -It is possible to quickly compile papiplot using cmake: -``` -$ git clone https://github.com/Papify/papiplot.git -$ cd papiplot/papiplot/ -$ cmake . -$ make -``` - -You can also import the project into eclipse. - -##Examples - -An example of an html generated with PapiPlot has been set up at http://papify.github.io/papiplot. Note that this is just an example generated with the command `./papiplot` (no parameters) using the data obtained after applying papify to all actions, all actors to the [orc-app RVC](https://github.com/orcc/orc-apps), an app that has some actors with lots of actions, meaning some images are not properly adjusted to make them usable. This can be fixed using the resolution parameters integrated in PapiPlot, an example is shown below. - -Here's what the graphs look like without labels (`$ ./papiplot -n`) -![Alt text](papiplot/readme/papiplot_overall_.png?raw=true "Optional Title") - - -Sometimes it's possible for an actor to have a huge amount of actions *papified* and everything may look cramped like in the following example: -![cramped!](http://papify.github.io/papiplot/papiplot_HevcDecoder_Algo_Parser.png) - -Now that's **awful**! - -You might want to consider reducing the amount of actions *papified* in this actor and repeat the process several times to get the same stats grouped into different charts. But if you insist in having everything in a single graph, you may want to consider the following: - -#####Increase horizontal resolution -Increasing horizontal resolution will give PapiPlot more space to plot your data, making it more convenient to read. In the folowing example, the vertical resolution is also increased a little bit: - -`./papiplot -x 7000 -y 2000` -![MADNESS!](papiplot/readme/madness.png?raw=true "MADNESS!") - -Now that looks better, but the image size gets just too big (click on the image to see in full resolution). - -It is also convenient to remove labels in order to get a cleaner graph: - -`./papiplot -x 7000 -y 2000 -n` -![MADNESS!](papiplot/readme/madness_not_labeled.png?raw=true "MADNESS!") - - -##TODO -#####More stats: -- Number of execs per action -- Number of execs per actor -- Average of event per action -- Average of event per actor -- Execs per second (First, papify needs to be updated to provide timestamps per action exec) - - - - diff --git a/index.html b/index.html new file mode 100644 index 0000000..7703bc5 --- /dev/null +++ b/index.html @@ -0,0 +1,3778 @@ +PAPI stats +

Papify stats processed with PapiPlot


+ +

Stats for actor "HevcDecoder_DecodingPictureBuffer"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"isNewPict_aligned"
4290
198
20382
"getRps_launch"
8130
581
38756
"getRpsPoc_done"
7680
426
34965
"getRps_done"
3572
119
9974
"getRpsPoc_launch"
7027
315
21273
"checkIsNewPict_isTrue"
1255
67
5811
"getPix_aligned"
109411996
218975
67837029
"getPix"
4057313
10120
2433987
"getCuPix_done"
1004
62
4973
"getReadAddr"
574229
39128
2575215
"getMvInfo_launch_aligned"
3205056
78509
7722020
"lumaWidth_is71"
7279
389
33325
"sendCu_luma_launch_is71_aligned"
6212806
49068
6818817
"sendCu_luma_done"
755904
39222
3406685
"chromaWidth_is35"
7279
387
33941
"sendCu_chroma_launch_is35_aligned"
3757060
44236
5196585
"sendCu_chroma_done"
746976
40078
3401041
"sendCu_luma_launch_is71"
56070
455
60935
"getMvInfo_done"
452553
24716
2096963
"lumaWidth_is23"
241212
13319
1124976
"sendCu_luma_launch_is23_aligned"
24551059
447061
43519958
"chromaWidth_is11"
241211
12662
1104237
"sendCu_chroma_launch_is11_aligned"
15574835
413706
36056866
"sendCu_luma_launch_is23"
80065
1468
149605
"lumaWidth_is15"
353157
19205
1612632
"sendCu_luma_launch_is15_aligned"
18662003
453822
39492364
"chromaWidth_is7"
353157
18654
1600098
"sendCu_chroma_launch_is7_aligned"
12147920
415504
32536062
"sendCu_chroma_launch_is7"
10878
383
30561
"getMvInfo_skip_aligned"
43225
2767
226131
"sendCu_luma_launch_is15"
39375
943
83352
"valWidth_isOther"
57730
3115
265306
"sendCu_luma_launch_is1"
21065779
1275653
83990280
"sendCu_chroma_launch_is1"
9929041
576998
39375846
"lumaWidth_is11"
65260
3535
302185
"sendCu_luma_launch_is11_aligned"
3226434
94910
8025741
"chromaWidth_is5"
65260
3347
299002
"sendCu_chroma_launch_is5_aligned"
2196910
85843
6761525
"sendCu_luma_launch_is11"
3575
109
8884
"sendCu_chroma_launch_is11"
18924
510
45306
"lumaWidth_is39"
51204
2761
232959
"sendCu_luma_launch_is39_aligned"
13814834
169353
19559094
"chromaWidth_is19"
51204
2729
235290
"sendCu_chroma_launch_is19_aligned"
8531080
156269
15316291
"sendCu_luma_launch_is39"
58720
721
84756
"sendCu_chroma_launch_is19"
21970
413
43179
"sendCu_chroma_launch_is35"
13244
154
18637
"sendCu_chroma_launch_is5"
512
21
1728
+
+
+ +

Stats for actor "HevcDecoder_IntraPrediction"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"isNewSliceOrPict_notDep_aligned"
3925
325
21391
"getTilesCoord_launch_aligned"
1981
156
10131
"getTilesCoord_done"
1506
87
6946
"getPartMode_isQuadTree"
794750
52173
3467271
"getCuInfo_launch_aligned"
1818702
118521
7547444
"getCuMode_isIntra_aligned"
1792962
101815
6512979
"getSplitTrafo_isFalse"
16978481
185415
28789162
"sendSamples_launch_aligned"
5858669
177820
12935597
"sendSamples_done"
1080576
58057
4913154
"getSamples_launch_aligned"
19596373
1020339
55584570
"getSamples_done"
1485669
87190
6771100
"getSplitTrafo_done"
1439235
80624
6506888
"getCuInfo_done"
801694
46547
3610882
"sendSamples_launch"
17802
512
47439
"getSamples_launch"
77458
3391
233462
"getSplitTrafo_isTrue"
17298
889
73435
"getCuMode_isOther"
42670
2589
196055
"getCuInfo_launch"
987
66
4252
"getCuMode_isInter"
392792
26239
1588772
"getSplitTrafo_isInter"
1498056
91498
6165047
"getPartMode_isNonQuadTree"
81740
4828
357622
"getCuInfo_nonQT_isInter_aligned"
112368
9370
503221
+
+
+ +

Stats for actor "check_MD5_padding"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"computeNewLength"
67899
278
99374
"copyData"
171924568
11906903
716225036
"endCopy"
3180
175
14199
"zeroPadding"
177540
9275
751084
"endZeroPadding_aligned"
4104
206
20338
+
+
+ +

Stats for actor "HevcDecoder_xIT_invDST4x4_1st"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
4132750
69405
6034142
+
+
+ +

Stats for actor "HevcDecoder_DBFilter_DeblockFilt"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"isNewPict_aligned"
2665
292
25105
"getNumTiles"
1632
133
9397
"getTilesCoord_launch_aligned"
1986
151
8897
"getTilesCoord_done"
1506
82
6825
"getCuPix_launch_pict"
25207
1500
117558
"getCuPix_launch_getPart_isHorVer_aligned"
7108041
334684
15825300
"getCuPix_launch_getPart_isHor_aligned"
6948730
304188
14138556
"getCuPix_launch_getPart_isVer_aligned"
6808821
296036
14415924
"getCuPix_launch_getPart_qp_aligned"
6680198
246482
13513926
"getCuPix_launch_getPartDone"
24750
1531
150777
"filterEdges"
27617296
135262
25537501
"filteringOnlyVertEdge_isFalse"
35140
2198
164930
"getCuPix_launch_getPart_isHor"
35596
1210
66778
"getCuPix_launch_getPart_isVer"
38264
1272
76120
"getCuPix_launch_getPart_qp"
32991
916
60457
"getCuPix_launch_lastColOrRow_vert"
15900
928
71170
"getBlk_launch_isHorVer_aligned"
2619410
126364
5453025
"getBlk_launch_isHor_aligned"
2559061
111409
4782381
"getBlk_launch_isVer_aligned"
2514074
108486
4924269
"getBlk_launch_qp_aligned"
2463604
90626
4871982
"getBlk_skip_vertEdge"
1549761
108625
6104034
"getBlk_done"
14375
912
83753
"getBlk_launch_qp"
11421
386
23132
"getBlk_launch_isHor"
11844
487
27028
"getBlk_launch_isVer"
7752
310
18516
"getCuPix_done"
1275
73
5698
"sendSamples_launch_luma_aligned"
29474503
772505
62037327
"sendSamples_launch_lumaDone"
35420
2150
162469
"sendSamples_launch_chroma_aligned"
23238939
774064
55887354
"sendSamples_launch_chromaDone"
39265
2612
240178
"sendSamples_launch_luma"
58800
1493
134381
"sendSamples_launch_chroma"
23205
776
64105
"sendSamples_done"
1255
73
5676
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT32x32_IT32x32_1d_0"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
2194564
14413
1724834
+
+
+ +

Stats for actor "display"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"getPictureSize_aligned"
1990
167
13814
"getPixValue_launch_Luma_blk16x16_aligned"
18026356
76588
12647311
"getPixValue_launch_Chroma_blk16x16_aligned"
10673577
114511
11960757
"getPixValue_launch_Luma_blk16x16"
847401
2569
600223
"getPixValue_launch_Chroma_blk16x16"
115494
917
126930
"displayPicture"
1171066
29494
2809251
+
+
+ +

Stats for actor "HevcDecoder_InterPrediction"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"isNewSlice_notDep"
1992
199
15306
"getSizeRefList_launch"
3312
285
18109
"getRefList_done"
3072
142
13918
"getSizeRefList_done"
1506
66
6858
"getWeightDenom_skip"
1530
69
7147
"getPartMode"
878626
67218
4089635
"getCuInfo_launch_aligned"
2917076
142527
9838355
"getCuMode_isNotInter"
1072272
49171
4752438
"getCuInfo_done"
801694
36882
3577819
"getCuInfo_launch"
1437
69
5455
"getRefList_launch"
8008
540
33144
"getCuMode_isInter"
522991
38338
2563572
"getRefIdx_biPred_aligned"
862295
43977
3266049
"getAllSamples_launch"
756158
39689
3446160
"lumaWidth_is71"
7279
434
43623
"getSamples_luma_launch_is71_aligned"
3341120
51123
5092504
"getSamples_luma_done"
755905
38414
3405553
"chromaWidth_is35"
7279
341
32703
"getSamples_chroma_launch_is35_aligned"
1953615
50032
4109907
"getSamples_chroma_done"
746977
38242
3373839
"interpolateSamples"
169541838
181718
97286781
"getSamples_luma_launch_is71"
30744
473
46730
"getAllSamples_done"
93064750
143687
65900505
"sendCu_launch_aligned"
28800658
610492
51280764
"sendCu_done"
489808
25343
2238249
"sendCu_launch"
86308
1754
164366
"lumaWidth_is23"
241211
11793
1092443
"getSamples_luma_launch_is23_aligned"
15187303
475740
37262036
"chromaWidth_is11"
241211
11306
1093712
"getSamples_chroma_launch_is11_aligned"
10218730
465411
32359087
"getSamples_luma_launch_is23"
50116
1553
131088
"getRefIdx_monoPred_aligned"
465431
24291
1563193
"lumaWidth_is15"
353408
16767
1605803
"getSamples_luma_launch_is15_aligned"
12434102
491486
34699622
"chromaWidth_is7"
353157
16402
1591728
"getSamples_chroma_launch_is7_aligned"
8828413
469835
30568800
"getSamples_chroma_launch_is7"
7936
422
30908
"getSamples_luma_launch_is15"
26460
1022
83365
"valWidth_isOther"
57730
2687
264064
"getSamples_luma_launch_is1"
20058271
1330912
83457409
"getSamples_chroma_launch_is1"
9447283
656069
38687786
"lumaWidth_is11"
65260
3092
295836
"getSamples_luma_launch_is11_aligned"
2277752
102541
7088992
"chromaWidth_is5"
65260
3008
294300
"getSamples_chroma_launch_is5_aligned"
1714969
100026
6432484
"getSamples_luma_launch_is11"
2540
134
9184
"getSamples_chroma_launch_is11"
12506
600
45875
"lumaWidth_is39"
51204
2440
235074
"getSamples_luma_launch_is39_aligned"
7915069
178608
15492570
"chromaWidth_is19"
51204
2381
230133
"getSamples_chroma_launch_is19_aligned"
4964759
184322
13168046
"getSamples_luma_launch_is39"
34176
792
70430
"getSamples_chroma_launch_is19"
12941
497
36005
"getSamples_chroma_launch_is35"
7003
179
14535
"getSamples_chroma_launch_is5"
400
27
1814
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT16x16_IT16x16_1d_1"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
2794180
46112
4481799
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT16x16_Transpose16x16_0"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
523682
3704
560297
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT4x4_Transpose4x4_1"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
871875
32131
2263595
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT4x4_Transpose4x4_0"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
871877
33572
2319972
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT_Merger"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"merge_4x4_DST_aligned"
1921500
70605
4767260
"merge_4x4_IT_aligned"
872544
31187
2189688
"merge_4x4_skip_aligned"
3887344
130060
11725276
"merge_4x4_trans_skip_aligned"
795684
28796
2087263
"merge_8x8_default_aligned"
916167
18782
1449476
"merge_8x8_skip_aligned"
2161447
42321
4501184
"merge_16x16_default_aligned"
450144
3626
440945
"merge_4x4_DST"
6795
206
16204
"merge_4x4_trans_skip"
2313
70
5399
"merge_4x4_skip"
12096
362
34882
"merge_16x16_default"
13030
136
12281
"merge_32x32_default_aligned"
215244
933
158599
"merge_16x16_skip_aligned"
2350897
20022
2709365
"merge_8x8_skip"
19968
345
39770
"merge_8x8_default"
11442
203
16575
"merge_16x16_skip"
70848
506
79870
"merge_64x64_skip_aligned"
445473
1495
312712
"merge_32x32_skip_aligned"
1490694
6717
1201304
"merge_32x32_skip"
381888
1522
260559
"merge_64x64_skip"
288480
850
175557
"merge_4x4_IT"
1510
49
4144
+
+
+ +

Stats for actor "HevcDecoder_Algo_Parser"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0"
8119002
427342
31813497
"start_code_search"
11562
471
48189
"start_code_done"
4512
184
18877
"read_nal_unit_header"
12224
181
26284
"look_for_VPS_header"
254
9
1140
"read_VPS_Header_se_idx_1"
1708
14
2227
"read_VPS_Header_se_idx_2"
9785
12
7360
"read_VPS_Header_se_idx_3"
1226
11
1879
"read_VPS_Header_se_idx_4_loop1End"
253
13
1160
"read_VPS_Header_se_idx_4_insertedCond"
256
9
1160
"read_VPS_Header_se_idx_4_loop2End"
253
9
1128
"read_VPS_Header_se_idx_4_decodeInfoPresentFlag"
498
9
1458
"read_VPS_Header_se_idx_5_loop11"
1068
10
2168
"read_VPS_Header_se_idx_5_loopEnd"
670
10
1652
"read_VPS_Header_se_idx_6_loopEnd"
502
11
1529
"read_VPS_Header_done"
495
13
1475
"byte_align_a"
4065
180
17385
"look_for_SPS_header"
254
15
1193
"read_SPS_Header_se_idx_1"
984
18
1817
"read_SPS_Header_se_idx_20"
9785
12
7356
"read_SPS_Header_se_idx_21"
1226
13
1884
"read_SPS_Header_se_idx_22_loopEnd1"
253
11
1196
"read_SPS_Header_se_idx_22_indertedCond"
260
12
1234
"read_SPS_Header_se_idx_22_loopEnd"
252
13
1199
"read_SPS_Header_se_idx_1_1"
2554
14
3107
"read_SPS_Header_se_idx_2"
2257
22
4101
"read_SPS_Header_se_idx_3_loop"
1068
13
2043
"read_SPS_Header_se_idx_3_loopEnd"
256
10
1200
"read_SPS_Header_se_idx_4"
1686
20
3945
"read_SPS_Header_se_idx_5"
1476
23
4189
"read_SPS_Header_se_idx_6"
1567
15
2375
"read_SPS_Header_se_idx_7_loop"
45977
231
56108
"read_SPS_Header_se_idx_7_loopEnd"
257
12
1183
"read_SPS_Header_se_idx_8"
1257
23
3161
"read_SPS_Header_done"
497
13
1520
"look_for_PPS_header"
254
42
1461
"read_PPS_Header_se_idx_1"
614
18
1741
"read_PPS_Header_se_idx_2"
5372
24
5007
"read_PPS_Header_se_idx_3_noLoop"
256
12
1090
"read_PPS_Header_se_idx_5"
1031
23
2754
"read_PPS_Header_se_idx_51"
1171
14
1963
"read_PPS_Header_done"
251
16
1177
"look_for_Slice_header"
1778
84
8046
"read_SliceHeader_se_idx_1"
5924
186
26317
"read_SliceHeader_se_idx_11"
42300
276
45603
"read_SliceHeader_se_idx_14"
136211
534
145007
"read_SliceHeader_se_idx_2"
8355
131
22417
"read_SliceHeader_sendRefPOC_init_aligned"
4046
140
20620
"read_SliceHeader_sendListEntryL0Flag"
1912
110
9251
"read_SliceHeader_sendListEntryL1Flag"
1911
100
8393
"read_SliceHeader_sendRefPOC_sendSize"
10088
619
44997
"read_SliceHeader_se_idx_3"
6073
140
15694
"read_SliceHeader_se_idx_5_aligned"
9329
192
29779
"read_SliceHeader_se_idx_6"
2023
108
9507
"read_SliceHeader_se_idx_8"
1820
104
8833
"read_SliceHeader_done_aligned"
2279
200
18047
"read_SliceData_init_aligned"
1655229
2382
1533482
"read_SliceData_sendInfoTilesLoop_aligned"
2576
180
13222
"read_SliceData_senInfoTilesEnd"
1785
108
9167
"read_SliceData_sendRealInfoTilesLoop"
2205
139
8385
"read_SliceData_senRealInfoTilesEnd"
1785
107
8124
"read_SliceData_start_aligned"
2780
139
12404
"read_SliceData_gotoCodingTree_start"
43263
2434
195765
"read_CodingTree_start"
213093
4439
575644
"read_CodingTree_gotoSaoParam"
47196
2070
198926
"read_SaoParam_start"
143266
4219
417514
"read_SaoParam_loop1"
116512
3793
351381
"read_SaoParam_loop2_aligned"
247547
968
293437
"read_SaoParam_endLoop"
42921
2277
198531
"read_CodingTree_gotoCodingQuadTree"
50787
2823
252421
"read_CodingQuadTree_start"
4206394
125999
10733115
"read_CodingQuadTree_case1"
430896
12086
1444001
"read_CodingQuadTree_gotoCodingUnit"
1083781
38559
4196899
"read_CodingUnit_start"
2443534
88897
7247727
"read_CodingUnit_noGoto1"
10934397
89767
15136146
"sendIntraPredMode_partNxN_aligned"
827680
25403
2063469
"read_CodingUnit_endFunction"
889805
33851
3382381
"read_CodingUnit_gotoTransformTree"
608703
27261
2702062
"read_TransformTree_start"
10619179
294614
25749201
"read_TransformTree_gotoTransformTree"
3848377
76503
11493013
"read_TransformTree_start_nonPartNxN"
2402198
130098
9985187
"read_TransformTree_gotoTransformUnit"
2954959
106108
9773606
"read_TransformUnit_start"
2858799
133954
11148757
"read_TransformUnit_gotoResidualCoding"
1428992
65456
6377376
"read_ResidualCoding_start_aligned"
22420535
307116
36447229
"read_ResidualCoding_for_numLastSubset_start"
38325861
236258
42215857
"read_ResidualCoding_for_numLastSubset_get_COEFF_ABS_LEVEL_GREATER1_FLAG"
26860876
243539
35793696
"read_ResidualCoding_for_numLastSubset_get_COEFF_ABS_LEVEL"
23901942
715190
60587631
"read_ResidualCoding_for_numLastSubset_get_COEFF_ABS_LEVEL_end"
1868034
90047
8300723
"read_ResidualCoding_end_xIT4_aligned"
2713016
82254
7607654
"read_TransformUnit_retLuma"
2778391
124900
10914254
"read_TransformUnit_retCb"
2451183
107662
9412718
"read_TransformUnit_end"
1895348
91156
8594894
"read_TransformTree_endCall"
1854465
86035
8134050
"read_TransformTree_end"
509279
23663
2340773
"read_CodingUnit_end"
1455224
84826
5613248
"read_CodingUnit_end_sendQp_blk8x8_aligned"
782401
45013
3190767
"read_CodingQuadTree_noEnd"
1100545
53956
4815705
"read_CodingQuadTree_case2"
420964
12175
1634979
"read_TransformUnit_skipResidualCoding_aligned"
2447353
159808
9597976
"read_CodingQuadTree_case3"
400336
11607
1370642
"read_CodingQuadTree_case4"
391168
11381
1319400
"sendIntraPredMode_part2Nx2N_aligned"
212639
13318
833466
"read_ResidualCoding_end_xIT8_aligned"
684583
9989
1064190
"read_ResidualCoding_end_xIT16_aligned"
356125
2513
349588
"read_CodingUnit_end_sendQp_blk16x16_aligned"
372970
14637
1179386
"read_CodingQuadTree_end"
48626
2786
199544
"read_CodingTree_end"
42670
2135
194047
"read_SliceData_retCodingTree"
78970
3801
446367
"read_ResidualCoding_end_xIT8"
8550
140
13594
"read_ResidualCoding_start"
19295
312
44753
"read_ResidualCoding_end_xIT4"
5049
145
14113
"read_CodingQuadTree_noCase2_aligned"
11160
495
46407
"read_CodingQuadTree_noCase4_aligned"
47430
2138
174640
"sendIntraPredMode_part2Nx2N"
880
58
3546
"read_ResidualCoding_end_xIT32_aligned"
123767
592
93365
"read_CodingUnit_end_sendQp_blk32x32_aligned"
190058
3181
337696
"read_TransformUnit_skipResidualCoding"
2094
151
9451
"read_CodingQuadTree_noCase3_aligned"
36270
1596
137895
"sendIntraPredMode_partNxN"
910
27
3501
"read_SliceData_end"
1506
79
6954
"look_for_SEI_header"
1524
71
6991
"read_SEI_Header_init"
1560
79
7222
"read_SEI_Header_payload_type"
3048
78
9111
"read_SEI_Header_payload_size"
3048
68
8977
"read_SEI_Header_decoded_picture_hash_init"
3060
62
8975
"read_SEI_Header_decoded_picture_hash_loop"
150258
3919
439107
"read_SEI_Header_sei_payload_end"
1716
64
7684
"read_SEI_Header_done"
2946
75
8834
"read_SliceHeader_se_idx_13"
3102
87
12574
"read_SliceHeader_sendRefPOC_sendRefPoc"
5352
299
22303
"sendIntraPredMode_skip"
220880
10584
998249
"read_CodingUnit_gotoPredictionUnit_goto2_aligned"
507841
26326
2187036
"read_PredictionUnit_start"
3000154
60228
7079976
"read_PredictionUnit_gotoMVDCoding"
131840
6427
585600
"read_MVDCoding_start"
1024789
14211
1685959
"read_MVDCoding_ended"
284558
8867
849522
"read_PredictionUnit_retMVDcoding_goto1"
472768
11352
1142348
"read_PredictionUnit_retMVDcoding_goto2"
119840
3480
324228
"read_PredictionUnit_end_mergeIdx_Eq_min1_aligned"
187096
8026
739698
"read_CodingUnit_endFunctionSend_aligned"
116144
6197
431976
"read_CodingUnit_end_sendQp_blk64x64_aligned"
84788
475
88575
"read_CodingUnit_gotoPredictionUnit_goto1_aligned"
867141
43401
2629264
"read_PredictionUnit_end_mergeIdx_notEq_min1_aligned"
576323
27664
2300604
"read_CodingUnit_end_sendQp_blk64x64"
4110
20
5512
"read_ResidualCoding_end_xIT32"
37410
167
27650
"read_CodingUnit_end_sendQp_blk16x16"
510
20
1547
"read_CodingUnit_gotoPredictionUnit_goto1"
4114
219
17550
"read_SaoParam_nextLoop"
11264
597
50329
"read_CodingUnit_end_sendQp_blk32x32"
2460
37
4735
"read_PredictionUnit_end_mergeIdx_Eq_min1"
373
14
1330
+
+
+ +

Stats for actor "HevcDecoder_xIT_invDST4x4_2nd"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
4132750
71023
6024758
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT32x32_Transpose32x32_1"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
235020
900
179839
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT4x4_IT4x4_1d_0"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
2684933
127178
7286050
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT32x32_IT32x32_1d_1"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
2194563
15174
1764565
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT8x8_Transpose8x8_1"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
990008
15654
1496948
+
+
+ +

Stats for actor "HevcDecoder_SelectCU"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"isNewSlice"
1608
100
7533
"getPartMode"
885016
53553
3764061
"getCuInfo_launch_aligned"
2971477
127029
9366879
"getCuMode_isIntra"
1050112
44995
4703481
"getCuSample_isIntra_aligned"
10036316
244346
16366537
"getCuSample_done"
1740181
79918
6999759
"getCuInfo_done"
801694
38623
3584120
"getCuSample_isIntra"
30312
641
49260
"getCuMode_isOther"
43520
2221
191638
"getCuInfo_launch"
1623
79
5540
"getCuMode_isInter"
414529
21234
1838109
"chekNbBlkToClip_is256"
3765
191
16878
"getCuSample_isInter_aligned"
23801849
632099
44703781
"getInterRes_get64Blk_aligned"
12019538
16029
8366847
"getInterRes_get64Blk"
3343550
4307
2169338
"getCuSample_isInter"
71838
1841
144879
"chekNbBlkToClip_is16"
122739
6234
552127
"getInterRes_get16Blk_aligned"
11458957
24182
8046995
"getInterRes_get16Blk"
530332
1068
370603
"chekNbBlkToClip_is4"
204566
10319
915128
"getInterRes_get4Blk_aligned"
7263544
36077
6300192
"getCuInfo_launch_numPart2_aligned"
161121
7513
529864
"chekNbBlkToClip_is1"
52208
2674
234482
"getInterRes_get1Blk_aligned"
2285142
35766
3190039
"chekNbBlkToClip_is64"
26355
1340
118462
"getInterRes_get4Blk"
87500
426
82250
"getInterRes_get1Blk"
3522
53
5527
+
+
+ +

Stats for actor "HevcDecoder_SAO"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"isNewPict_aligned"
135568
768
94035
"checkSliceEn_isTrue"
1506
93
7082
"getNumTiles"
1632
142
7585
"getTilesCoord_launch_aligned"
2238
142
9168
"getTilesCoord_done"
1506
85
6856
"getCuPix_launch_init"
45970
3362
219506
"getCuPix_launch_luma_aligned"
23322298
929053
61960575
"getCuPix_launch_lumaDone"
35421
2354
178029
"getCuPix_launch_chroma_aligned"
19515460
1047417
56137320
"getCuPix_launch_chromaDone"
39340
3186
207042
"getSaoMerge_noMerge"
17952
946
81654
"getSaoTypeIdx_isNot0_aligned"
171640
7788
949116
"getSaoTypeIdxDone"
14730536
37910
10271740
"sendSamples_done"
36395
2178
169805
"getCuPix_launch_luma"
46760
1728
122976
"getCuPix_launch_chroma"
19565
947
59084
"getSaoMerge_merge"
30587972
75872
21584800
"getSaoTypeIdx_is0"
112332
3328
287700
"sendSamples_launch_aligned"
36468433
116630
24823958
"sendSamples_launch"
1820115
5893
1224271
"getCuPix_done"
233577
1754
193326
"getSaoTypeIdx_skip"
12688
326
29798
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT16x16_IT16x16_1d_0"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
2794180
44377
4372516
+
+
+ +

Stats for actor "HevcDecoder_generateInfo_GenerateRefList"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"getNumRefIdxLX_aligned"
2030
189
14414
"getSizeList_launch"
9802
699
49389
"getRefPocContent_done"
8960
432
39975
"getSizeList_done"
3740
111
12601
"getListModif_isFalse"
4060
223
16824
"sendingUnmodifiedList_done"
3584
180
15885
"getListModif_done"
1764
89
7936
"getRefPocContent_launch"
5184
337
22011
"sendingUnmodifiedList_launch"
10224
576
41708
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT8x8_IT8x8_1d_0"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
3925411
112217
8041196
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT16x16_Transpose16x16_1"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
523680
3630
491249
+
+
+ +

Stats for actor "check_MD5_MD5SplitInfo"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"getPictureSize_aligned"
2060
147
15345
"getPixValue_launch_Luma_blk16x16_aligned"
23765134
80253
16923502
"getPixValue_launch_Chroma_blk16x16_aligned"
16373140
124817
14914307
"getPixValue_launch_Luma_blk16x16"
814278
2569
585236
"getPixValue_launch_Chroma_blk16x16"
128126
957
130658
"initOutputLoop"
1260
81
5671
"outputLoop_Y_loop"
113299509
6839157
466479587
"outputLoop_Y_endLoop"
1008
60
4651
"outputLoop_U_loop"
27755536
1750259
114684010
"outputLoop_U_endLoop"
1008
65
4544
"outputLoop_V_loop"
27755538
1780874
116573371
"outputLoop_V_endLoop"
1008
60
4774
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT4x4_IT4x4_1d_1"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
2684931
128432
7568740
+
+
+ +

Stats for actor "Source"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"getFileSize"
3007
136
10761
"readNBytes"
5246
467
39507
"sendData_launch"
9197431
528463
38441719
"sendData_done"
2008
101
9259
+
+
+ +

Stats for actor "check_MD5_shifter"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"shiftAction_aligned"
49184290
3173521
185830115
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT8x8_IT8x8_1d_1"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
3925415
114182
7808145
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT_Splitter"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"split_4x4_DST_aligned"
2571838
80682
5378196
"split_4x4_IT_aligned"
1187533
34026
2600786
"split_4x4_skipIT_aligned"
2522976
125036
9855652
"split_4x4_transf_skip_aligned"
1256524
33241
2461357
"split_8x8_default_aligned"
1407110
17878
1718551
"split_8x8_skip_aligned"
738400
39496
3028939
"split_16x16_default_aligned"
777627
4196
639698
"split_8x8_default"
20118
273
27403
"split_4x4_DST"
7014
244
14633
"split_4x4_transf_skip"
5745
155
10970
"split_32x32_default_aligned"
274983
890
189004
"split_16x16_skip_aligned"
275926
14749
1146362
"split_4x4_IT"
3006
73
6064
"split_4x4_skipIT"
1992
101
7848
"split_64x64_skip_aligned"
7150
460
32703
"split_32x32_skip_aligned"
62400
3407
260944
"split_32x32_default"
80630
310
56848
"split_8x8_skip"
664
43
3423
"split_16x16_skip"
332
15
1308
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT32x32_Transpose32x32_0"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
235020
929
181940
+
+
+ +

Stats for actor "HevcDecoder_xIT_Block_Merger"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"merge_Y_loop_block4x4_aligned"
3528871
135194
8524904
"merge_Y_block4x4_aligned"
1169360
44809
2854104
"merge_U_block4x4_aligned"
2194800
77843
5343848
"merge_V_block4x4_aligned"
2184385
77792
5587413
"output_Y_aligned"
17996801
729800
46889379
"output_U_aligned"
11098934
653747
39147235
"output_V_aligned"
11227866
646782
39184266
"output_done"
906444
42147
4046359
"merge_Y_block8x8_aligned"
2489184
47063
4292797
"merge_Y_block16x16_aligned"
3030078
25065
3274269
"merge_U_block8x8_aligned"
947394
16463
1605518
"merge_V_block8x8_aligned"
936544
15934
1466123
"merge_Y_loop_block4x4"
7290
253
17324
"output_Y"
38115
1502
103760
"merge_Y_block4x4"
4842
178
11465
"merge_V_block4x4"
12784
417
29874
"output_V"
11179
651
41322
"merge_Y_block16x16"
100920
745
95746
"merge_Y_block32x32_aligned"
1793559
9347
1509857
"merge_U_block16x16_aligned"
559419
4993
575043
"merge_V_block16x16_aligned"
564120
5054
564261
"merge_Y_block8x8"
30120
510
53064
"merge_U_block4x4"
1598
48
4667
"merge_Y_64x64_aligned"
851148
2791
568505
"merge_UV_64x64"
257545
866
162132
"merge_UV_64x64_aligned"
426717
1486
288887
"merge_V_block8x8"
12042
174
16372
"merge_U_block16x16"
14892
125
13904
"merge_Y_block32x32"
394569
1957
303252
"merge_Y_64x64"
513855
1564
317514
"merge_V_block16x16"
9928
75
9828
+
+
+ +

Stats for actor "HevcDecoder_generateInfo_MvComponentPred"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"isNewPicOrSlice_aligned"
2632
259
16291
"checkDepSlc_isFalse_aligned"
1566398
911
872428
"getTilesCoord_launch_aligned"
2345
194
9699
"getTilesCoord_done"
1757
114
7964
"getRps_launch"
9590
694
42232
"getRpsPoc_done"
8960
544
40132
"getRps_done"
3922
130
11462
"getSizeRefList_launch"
4165
349
20477
"getRefList_done"
3584
252
16616
"getSizeRefList_done"
3898
167
11183
"getPartMode"
993440
86369
4754984
"getCuInfo_launch_aligned"
3758319
225084
11978295
"getCuMode_isNotInter"
1080807
63355
4913187
"getCuInfo_done"
890549
52190
4062615
"getCuInfo_launch"
2436
153
10181
"getRpsPoc_launch"
8400
433
27423
"getRefList_launch"
12089
1039
56090
"getCuMode_isInter"
803653
65437
3229193
"checkMergeIdx_isEqToMin1_aligned"
2171500
26365
4180720
"getMvd_aligned"
8548227
128968
11497721
"send2ndMv_launch_aligned"
621717
47995
2318570
"checkMergeIdx_isNotEqToMin1"
4483940
84142
10111074
"send2ndMv_skip"
215860
13223
992652
"getMvd"
2058
59
5380
+
+
+ +

Stats for actor "HevcDecoder_DBFilter_GenerateBs"

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"isNewSliceOrPict_isNotDep_aligned"
2660
272
16231
"getTilesCoord_launch_aligned"
2317
182
10681
"getTilesCoord_done"
1757
84
8046
"getPartMode_isQuadTree"
875326
53579
3977035
"getCuInfo_launch_aligned"
2422198
152238
8613120
"getCuMode_isNotOther"
1500047
75639
6527015
"getRefPictInfo_done"
2918299
82877
7926829
"getSplitTrafo_launch_isFalse"
23082636
402158
40067950
"sendBS_launch_is4x4_isbSHorVer"
499778
29003
1948551
"getSplitTrafo_done"
2154871
109226
7921138
"sendBS_launch_is4x4_isbSHor"
451567
26489
1959090
"sendBS_launch_is4x4_isbSVer"
451567
22498
1916354
"sendBS_launch_is4x4"
403357
20792
1816896
"getCuInfo_done"
1174962
44376
4412339
"sendBS_launch_is8x8_aligned"
562077
31823
2176611
"sendBS_launch_is16x16_aligned"
342109
13859
1003785
"getSplitTrafo_launch_isTrue"
253332
12964
1087770
"getCuMode_isOther"
51204
2353
232918
"getCuInfo_launch"
1660
112
7865
"sendBS_launch_is32x32_aligned"
210757
3597
375868
"getRefPictInfo_launch_isBiPred_aligned"
714896
42368
2340401
"sendBS_launch_is64x64_aligned"
99418
613
106857
"getRefPictInfo_launch_isNotBiPred_aligned"
319060
24329
1297814
"getPartMode_isNonQuadTree"
99280
5747
436421
"getCuInfo_nonQT_aligned"
619013
14737
1435476
"sendBS_launch_is16x16"
575
21
1652
"sendBS_launch_is32x32"
1415
28
2485
+
+
+ +

Stats for actor "HevcDecoder_xIT_IT8x8_Transpose8x8_0"

+ + + + + + + + + + + +
Action
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
"untagged_0_aligned"
990009
14870
1450777
+
+
+

Overall: Events per actor

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Actor
PAPI_TOT_INS
PAPI_L1_DCM
PAPI_TOT_CYC
HevcDecoder_DecodingPictureBuffer
260747257
4722986
433855528
HevcDecoder_IntraPrediction
53895694
2068451
145846820
check_MD5_padding
172177291
11916837
717110031
HevcDecoder_xIT_invDST4x4_1st
4132750
69405
6034142
HevcDecoder_DBFilter_DeblockFilt
120002687
3428216
229014529
HevcDecoder_xIT_IT32x32_IT32x32_1d_0
2194564
14413
1724834
display
30835884
224246
28158286
HevcDecoder_InterPrediction
401804055
6115568
572515811
HevcDecoder_xIT_IT16x16_IT16x16_1d_1
2794180
46112
4481799
HevcDecoder_xIT_IT16x16_Transpose16x16_0
523682
3704
560297
HevcDecoder_xIT_IT4x4_Transpose4x4_1
871875
32131
2263595
HevcDecoder_xIT_IT4x4_Transpose4x4_0
871877
33572
2319972
HevcDecoder_xIT_IT_Merger
16315508
358793
32188313
HevcDecoder_Algo_Parser
199242326
4484478
442704591
HevcDecoder_xIT_invDST4x4_2nd
4132750
71023
6024758
HevcDecoder_xIT_IT32x32_Transpose32x32_1
235020
900
179839
HevcDecoder_xIT_IT4x4_IT4x4_1d_0
2684933
127178
7286050
HevcDecoder_xIT_IT32x32_IT32x32_1d_1
2194563
15174
1764565
HevcDecoder_xIT_IT8x8_Transpose8x8_1
990008
15654
1496948
HevcDecoder_SelectCU
79412914
1392858
122624309
HevcDecoder_SAO
127358904
2241902
178625426
HevcDecoder_xIT_IT16x16_IT16x16_1d_0
2794180
44377
4372516
HevcDecoder_generateInfo_GenerateRefList
49348
2836
220743
HevcDecoder_xIT_IT8x8_IT8x8_1d_0
3925411
112217
8041196
HevcDecoder_xIT_IT16x16_Transpose16x16_1
523680
3630
491249
check_MD5_MD5SplitInfo
209897605
10579299
730325656
HevcDecoder_xIT_IT4x4_IT4x4_1d_1
2684931
128432
7568740
Source
9207692
529167
38501246
check_MD5_shifter
49184290
3173521
185830115
HevcDecoder_xIT_IT8x8_IT8x8_1d_1
3925415
114182
7808145
HevcDecoder_xIT_IT_Splitter
11201968
355275
27440689
HevcDecoder_xIT_IT32x32_Transpose32x32_0
235020
929
181940
HevcDecoder_xIT_Block_Merger
63315303
2545375
166902992
+
+
+ \ No newline at end of file diff --git a/papiplot/.cproject b/papiplot/.cproject deleted file mode 100644 index 7275c85..0000000 --- a/papiplot/.cproject +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/papiplot/.gitignore b/papiplot/.gitignore deleted file mode 100644 index ac01e66..0000000 --- a/papiplot/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/Debug/ -/Release/ diff --git a/papiplot/.project b/papiplot/.project deleted file mode 100644 index 0f79f7a..0000000 --- a/papiplot/.project +++ /dev/null @@ -1,26 +0,0 @@ - - - papiplot - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - diff --git a/papiplot/.settings/language.settings.xml b/papiplot/.settings/language.settings.xml deleted file mode 100644 index da77af9..0000000 --- a/papiplot/.settings/language.settings.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/papiplot/CMakeLists.txt b/papiplot/CMakeLists.txt deleted file mode 100644 index 9c0dc23..0000000 --- a/papiplot/CMakeLists.txt +++ /dev/null @@ -1,22 +0,0 @@ -project(papiplot) -cmake_minimum_required(VERSION 2.8) - -set(papiplot_src - src/gnuplot_i.h - src/gnuplot_i.c - src/plot.c -) -add_executable(papiplot ${papiplot_src}) -set(test_src - test/anim.c - test/example.c - test/sinepng.c - ${papiplot_src} -) -add_executable(papiplot-test ${test_src}) - -install(TARGETS papiplot - RUNTIME DESTINATION bin - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib -) diff --git a/papiplot/readme/annotations_example.png b/papiplot/readme/annotations_example.png deleted file mode 100644 index 2d719fb..0000000 Binary files a/papiplot/readme/annotations_example.png and /dev/null differ diff --git a/papiplot/readme/comp_settings.png b/papiplot/readme/comp_settings.png deleted file mode 100644 index 8b6c27d..0000000 Binary files a/papiplot/readme/comp_settings.png and /dev/null differ diff --git a/papiplot/readme/madness.png b/papiplot/readme/madness.png deleted file mode 100644 index 96446ea..0000000 Binary files a/papiplot/readme/madness.png and /dev/null differ diff --git a/papiplot/readme/madness_not_labeled.png b/papiplot/readme/madness_not_labeled.png deleted file mode 100644 index f91607f..0000000 Binary files a/papiplot/readme/madness_not_labeled.png and /dev/null differ diff --git a/papiplot/readme/papiplot_overall_.png b/papiplot/readme/papiplot_overall_.png deleted file mode 100644 index b45fbc5..0000000 Binary files a/papiplot/readme/papiplot_overall_.png and /dev/null differ diff --git a/papiplot/src/gnuplot_i.c b/papiplot/src/gnuplot_i.c deleted file mode 100644 index 685c06c..0000000 --- a/papiplot/src/gnuplot_i.c +++ /dev/null @@ -1,721 +0,0 @@ - - -/*-------------------------------------------------------------------------*/ -/** - @file gnuplot_i.c - @author N. Devillard - @date Sep 1998 - @version $Revision: 2.10 $ - @brief C interface to gnuplot. - - gnuplot is a freely available, command-driven graphical display tool for - Unix. It compiles and works quite well on a number of Unix flavours as - well as other operating systems. The following module enables sending - display requests to gnuplot through simple C calls. - -*/ -/*--------------------------------------------------------------------------*/ - -/* - $Id: gnuplot_i.c,v 2.10 2003/01/27 08:58:04 ndevilla Exp $ - $Author: ndevilla $ - $Date: 2003/01/27 08:58:04 $ - $Revision: 2.10 $ - */ - -/*--------------------------------------------------------------------------- - Includes - ---------------------------------------------------------------------------*/ - -#include "gnuplot_i.h" - -/*--------------------------------------------------------------------------- - Defines - ---------------------------------------------------------------------------*/ - -/** Maximal size of a gnuplot command */ -#define GP_CMD_SIZE 2048 -/** Maximal size of a plot title */ -#define GP_TITLE_SIZE 80 -/** Maximal size for an equation */ -#define GP_EQ_SIZE 512 -/** Maximal size of a name in the PATH */ -#define PATH_MAXNAMESZ 4096 - -/** Define P_tmpdir if not defined (this is normally a POSIX symbol) */ -#ifndef P_tmpdir -#define P_tmpdir "." -#endif - -/*--------------------------------------------------------------------------- - Function codes - ---------------------------------------------------------------------------*/ - - -/*-------------------------------------------------------------------------*/ -/** - @brief Find out where a command lives in your PATH. - @param pname Name of the program to look for. - @return pointer to statically allocated character string. - - This is the C equivalent to the 'which' command in Unix. It parses - out your PATH environment variable to find out where a command - lives. The returned character string is statically allocated within - this function, i.e. there is no need to free it. Beware that the - contents of this string will change from one call to the next, - though (as all static variables in a function). - - The input character string must be the name of a command without - prefixing path of any kind, i.e. only the command name. The returned - string is the path in which a command matching the same name was - found. - - Examples (assuming there is a prog named 'hello' in the cwd): - - @verbatim - gnuplot_get_program_path("hello") returns "." - gnuplot_get_program_path("ls") returns "/bin" - gnuplot_get_program_path("csh") returns "/usr/bin" - gnuplot_get_program_path("/bin/ls") returns NULL - @endverbatim - - */ -/*-------------------------------------------------------------------------*/ -char * gnuplot_get_program_path(char * pname) -{ - int i, j, lg; - char * path; - static char buf[PATH_MAXNAMESZ]; - - /* Trivial case: try in CWD */ - sprintf(buf, "./%s", pname) ; - if (access(buf, X_OK)==0) { - sprintf(buf, "."); - return buf ; - } - /* Try out in all paths given in the PATH variable */ - buf[0] = 0; - path = getenv("PATH") ; - if (path!=NULL) { - for (i=0; path[i]; ) { - for (j=i ; (path[j]) && (path[j]!=':') ; j++); - lg = j - i; - strncpy(buf, path + i, lg); - if (lg == 0) buf[lg++] = '.'; - buf[lg++] = '/'; - strcpy(buf + lg, pname); - if (access(buf, X_OK) == 0) { - /* Found it! */ - break ; - } - buf[0] = 0; - i = j; - if (path[i] == ':') i++ ; - } - } else { - fprintf(stderr, "PATH variable not set\n"); - } - /* If the buffer is still empty, the command was not found */ - if (buf[0] == 0) return NULL ; - /* Otherwise truncate the command name to yield path only */ - lg = strlen(buf) - 1 ; - while (buf[lg]!='/') { - buf[lg]=0 ; - lg -- ; - } - buf[lg] = 0; - return buf ; -} - - - -/*-------------------------------------------------------------------------*/ -/** - @brief Opens up a gnuplot session, ready to receive commands. - @return Newly allocated gnuplot control structure. - - This opens up a new gnuplot session, ready for input. The struct - controlling a gnuplot session should remain opaque and only be - accessed through the provided functions. - - The session must be closed using gnuplot_close(). - */ -/*--------------------------------------------------------------------------*/ - -gnuplot_ctrl * gnuplot_init(void) -{ - gnuplot_ctrl * handle ; - - if (getenv("DISPLAY") == NULL) { - fprintf(stderr, "cannot find DISPLAY variable: is it set?\n") ; - } - if (gnuplot_get_program_path("gnuplot")==NULL) { - fprintf(stderr, "cannot find gnuplot in your PATH"); - return NULL ; - } - - /* - * Structure initialization: - */ - handle = (gnuplot_ctrl*)malloc(sizeof(gnuplot_ctrl)) ; - handle->nplots = 0 ; - gnuplot_setstyle(handle, "points") ; - handle->ntmp = 0 ; - - handle->gnucmd = popen("gnuplot", "w") ; - if (handle->gnucmd == NULL) { - fprintf(stderr, "error starting gnuplot\n") ; - free(handle) ; - return NULL ; - } - return handle; -} - - -/*-------------------------------------------------------------------------*/ -/** - @brief Closes a gnuplot session previously opened by gnuplot_init() - @param handle Gnuplot session control handle. - @return void - - Kills the child PID and deletes all opened temporary files. - It is mandatory to call this function to close the handle, otherwise - temporary files are not cleaned and child process might survive. - - */ -/*--------------------------------------------------------------------------*/ - -void gnuplot_close(gnuplot_ctrl * handle) -{ - int i ; - - if (pclose(handle->gnucmd) == -1) { - fprintf(stderr, "problem closing communication to gnuplot\n") ; - return ; - } - if (handle->ntmp) { - for (i=0 ; intmp ; i++) { - remove(handle->to_delete[i]) ; - } - } - free(handle) ; - return ; -} - - -/*-------------------------------------------------------------------------*/ -/** - @brief Sends a command to an active gnuplot session. - @param handle Gnuplot session control handle - @param cmd Command to send, same as a printf statement. - - This sends a string to an active gnuplot session, to be executed. - There is strictly no way to know if the command has been - successfully executed or not. - The command syntax is the same as printf. - - Examples: - - @code - gnuplot_cmd(g, "plot %d*x", 23.0); - gnuplot_cmd(g, "plot %g * cos(%g * x)", 32.0, -3.0); - @endcode - - Since the communication to the gnuplot process is run through - a standard Unix pipe, it is only unidirectional. This means that - it is not possible for this interface to query an error status - back from gnuplot. - */ -/*--------------------------------------------------------------------------*/ - -void gnuplot_cmd(gnuplot_ctrl * handle, char * cmd, ...) -{ - va_list ap ; - char local_cmd[GP_CMD_SIZE]; - - va_start(ap, cmd); - vsprintf(local_cmd, cmd, ap); - va_end(ap); - - strcat(local_cmd, "\n"); - - fputs(local_cmd, handle->gnucmd) ; - fflush(handle->gnucmd) ; - return ; -} - - -/*-------------------------------------------------------------------------*/ -/** - @brief Change the plotting style of a gnuplot session. - @param h Gnuplot session control handle - @param plot_style Plotting-style to use (character string) - @return void - - The provided plotting style is a character string. It must be one of - the following: - - - lines - - points - - linespoints - - impulses - - dots - - steps - - errorbars - - boxes - - boxeserrorbars - */ -/*--------------------------------------------------------------------------*/ - -void gnuplot_setstyle(gnuplot_ctrl * h, char * plot_style) -{ - if (strcmp(plot_style, "lines") && - strcmp(plot_style, "points") && - strcmp(plot_style, "linespoints") && - strcmp(plot_style, "impulses") && - strcmp(plot_style, "dots") && - strcmp(plot_style, "steps") && - strcmp(plot_style, "errorbars") && - strcmp(plot_style, "boxes") && - strcmp(plot_style, "boxerrorbars")) { - fprintf(stderr, "warning: unknown requested style: using points\n") ; - strcpy(h->pstyle, "points") ; - } else { - strcpy(h->pstyle, plot_style) ; - } - return ; -} - - -/*-------------------------------------------------------------------------*/ -/** - @brief Sets the x label of a gnuplot session. - @param h Gnuplot session control handle. - @param label Character string to use for X label. - @return void - - Sets the x label for a gnuplot session. - */ -/*--------------------------------------------------------------------------*/ - -void gnuplot_set_xlabel(gnuplot_ctrl * h, char * label) -{ - char cmd[GP_CMD_SIZE] ; - - sprintf(cmd, "set xlabel \"%s\"", label) ; - gnuplot_cmd(h, cmd) ; - return ; -} - - -/*-------------------------------------------------------------------------*/ -/** - @brief Sets the y label of a gnuplot session. - @param h Gnuplot session control handle. - @param label Character string to use for Y label. - @return void - - Sets the y label for a gnuplot session. - */ -/*--------------------------------------------------------------------------*/ - -void gnuplot_set_ylabel(gnuplot_ctrl * h, char * label) -{ - char cmd[GP_CMD_SIZE] ; - - sprintf(cmd, "set ylabel \"%s\"", label) ; - gnuplot_cmd(h, cmd) ; - return ; -} - - -/*-------------------------------------------------------------------------*/ -/** - @brief Resets a gnuplot session (next plot will erase previous ones). - @param h Gnuplot session control handle. - @return void - - Resets a gnuplot session, i.e. the next plot will erase all previous - ones. - */ -/*--------------------------------------------------------------------------*/ - -void gnuplot_resetplot(gnuplot_ctrl * h) -{ - int i ; - if (h->ntmp) { - for (i=0 ; intmp ; i++) { - remove(h->to_delete[i]) ; - } - } - h->ntmp = 0 ; - h->nplots = 0 ; - return ; -} - - - -/*-------------------------------------------------------------------------*/ -/** - @brief Plots a 2d graph from a list of doubles. - @param handle Gnuplot session control handle. - @param d Array of doubles. - @param n Number of values in the passed array. - @param title Title of the plot. - @return void - - Plots out a 2d graph from a list of doubles. The x-coordinate is the - index of the double in the list, the y coordinate is the double in - the list. - - Example: - - @code - gnuplot_ctrl *h ; - double d[50] ; - int i ; - - h = gnuplot_init() ; - for (i=0 ; i<50 ; i++) { - d[i] = (double)(i*i) ; - } - gnuplot_plot_x(h, d, 50, "parabola") ; - sleep(2) ; - gnuplot_close(h) ; - @endcode - */ -/*--------------------------------------------------------------------------*/ - -void gnuplot_plot_x( - gnuplot_ctrl * handle, - double * d, - int n, - char * title -) -{ - int i ; - int tmpfd ; - char name[128] ; - char cmd[GP_CMD_SIZE] ; - char line[GP_CMD_SIZE] ; - - - if (handle==NULL || d==NULL || (n<1)) return ; - - /* Open one more temporary file? */ - if (handle->ntmp == GP_MAX_TMP_FILES - 1) { - fprintf(stderr, - "maximum # of temporary files reached (%d): cannot open more", - GP_MAX_TMP_FILES) ; - return ; - } - - /* Open temporary file for output */ - sprintf(name, "%s/gnuplot-i-XXXXXX", P_tmpdir); - if ((tmpfd=mkstemp(name))==-1) { - fprintf(stderr,"cannot create temporary file: exiting plot") ; - return ; - } - - /* Store file name in array for future deletion */ - strcpy(handle->to_delete[handle->ntmp], name) ; - handle->ntmp ++ ; - /* Write data to this file */ - for (i=0 ; inplots > 0) { - strcpy(cmd, "replot") ; - } else { - strcpy(cmd, "plot") ; - } - - if (title == NULL) { - sprintf(line, "%s \"%s\" with %s", cmd, name, handle->pstyle) ; - } else { - sprintf(line, "%s \"%s\" title \"%s\" with %s", cmd, name, - title, handle->pstyle) ; - } - - /* send command to gnuplot */ - gnuplot_cmd(handle, line) ; - handle->nplots++ ; - return ; -} - - - -/*-------------------------------------------------------------------------*/ -/** - @brief Plot a 2d graph from a list of points. - @param handle Gnuplot session control handle. - @param x Pointer to a list of x coordinates. - @param y Pointer to a list of y coordinates. - @param n Number of doubles in x (assumed the same as in y). - @param title Title of the plot. - @return void - - Plots out a 2d graph from a list of points. Provide points through a list - of x and a list of y coordinates. Both provided arrays are assumed to - contain the same number of values. - - @code - gnuplot_ctrl *h ; - double x[50] ; - double y[50] ; - int i ; - - h = gnuplot_init() ; - for (i=0 ; i<50 ; i++) { - x[i] = (double)(i)/10.0 ; - y[i] = x[i] * x[i] ; - } - gnuplot_plot_xy(h, x, y, 50, "parabola") ; - sleep(2) ; - gnuplot_close(h) ; - @endcode - */ -/*--------------------------------------------------------------------------*/ - -void gnuplot_plot_xy( - gnuplot_ctrl * handle, - double * x, - double * y, - int n, - char * title -) -{ - int i ; - int tmpfd ; - char name[128] ; - char cmd[GP_CMD_SIZE] ; - char line[GP_CMD_SIZE] ; - - if (handle==NULL || x==NULL || y==NULL || (n<1)) return ; - - /* Open one more temporary file? */ - if (handle->ntmp == GP_MAX_TMP_FILES - 1) { - fprintf(stderr, - "maximum # of temporary files reached (%d): cannot open more", - GP_MAX_TMP_FILES) ; - return ; - } - - /* Open temporary file for output */ - sprintf(name, "%s/gnuplot-i-XXXXXX", P_tmpdir); - if ((tmpfd=mkstemp(name))==-1) { - fprintf(stderr,"cannot create temporary file: exiting plot") ; - return ; - } - /* Store file name in array for future deletion */ - strcpy(handle->to_delete[handle->ntmp], name) ; - handle->ntmp ++ ; - - /* Write data to this file */ - for (i=0 ; inplots > 0) { - strcpy(cmd, "replot") ; - } else { - strcpy(cmd, "plot") ; - } - - if (title == NULL) { - sprintf(line, "%s \"%s\" with %s", cmd, name, handle->pstyle) ; - } else { - sprintf(line, "%s \"%s\" title \"%s\" with %s", cmd, name, - title, handle->pstyle) ; - } - - /* send command to gnuplot */ - gnuplot_cmd(handle, line) ; - handle->nplots++ ; - return ; -} - - - -/*-------------------------------------------------------------------------*/ -/** - @brief Open a new session, plot a signal, close the session. - @param title Plot title - @param style Plot style - @param label_x Label for X - @param label_y Label for Y - @param x Array of X coordinates - @param y Array of Y coordinates (can be NULL) - @param n Number of values in x and y. - @return - - This function opens a new gnuplot session, plots the provided - signal as an X or XY signal depending on a provided y, waits for - a carriage return on stdin and closes the session. - - It is Ok to provide an empty title, empty style, or empty labels for - X and Y. Defaults are provided in this case. - */ -/*--------------------------------------------------------------------------*/ - -void gnuplot_plot_once( - char * title, - char * style, - char * label_x, - char * label_y, - double * x, - double * y, - int n -) -{ - gnuplot_ctrl * handle ; - - if (x==NULL || n<1) return ; - - if ((handle = gnuplot_init()) == NULL) return ; - if (style!=NULL) { - gnuplot_setstyle(handle, style); - } else { - gnuplot_setstyle(handle, "lines"); - } - if (label_x!=NULL) { - gnuplot_set_xlabel(handle, label_x); - } else { - gnuplot_set_xlabel(handle, "X"); - } - if (label_y!=NULL) { - gnuplot_set_ylabel(handle, label_y); - } else { - gnuplot_set_ylabel(handle, "Y"); - } - if (y==NULL) { - gnuplot_plot_x(handle, x, n, title); - } else { - gnuplot_plot_xy(handle, x, y, n, title); - } - printf("press ENTER to continue\n"); - while (getchar()!='\n') {} - gnuplot_close(handle); - return ; -} - - - - -/*-------------------------------------------------------------------------*/ -/** - @brief Plot a slope on a gnuplot session. - @param handle Gnuplot session control handle. - @param a Slope. - @param b Intercept. - @param title Title of the plot. - @return void - - Plot a slope on a gnuplot session. The provided slope has an - equation of the form y=ax+b - - Example: - - @code - gnuplot_ctrl * h ; - double a, b ; - - h = gnuplot_init() ; - gnuplot_plot_slope(h, 1.0, 0.0, "unity slope") ; - sleep(2) ; - gnuplot_close(h) ; - @endcode - */ -/*--------------------------------------------------------------------------*/ - - -void gnuplot_plot_slope( - gnuplot_ctrl * handle, - double a, - double b, - char * title -) -{ - char stitle[GP_TITLE_SIZE] ; - char cmd[GP_CMD_SIZE] ; - - if (title == NULL) { - strcpy(stitle, "no title") ; - } else { - strcpy(stitle, title) ; - } - - if (handle->nplots > 0) { - sprintf(cmd, "replot %g * x + %g title \"%s\" with %s", - a, b, title, handle->pstyle) ; - } else { - sprintf(cmd, "plot %g * x + %g title \"%s\" with %s", - a, b, title, handle->pstyle) ; - } - gnuplot_cmd(handle, cmd) ; - handle->nplots++ ; - return ; -} - - -/*-------------------------------------------------------------------------*/ -/** - @brief Plot a curve of given equation y=f(x). - @param h Gnuplot session control handle. - @param equation Equation to plot. - @param title Title of the plot. - @return void - - Plots out a curve of given equation. The general form of the - equation is y=f(x), you only provide the f(x) side of the equation. - - Example: - - @code - gnuplot_ctrl *h ; - char eq[80] ; - - h = gnuplot_init() ; - strcpy(eq, "sin(x) * cos(2*x)") ; - gnuplot_plot_equation(h, eq, "sine wave", normal) ; - gnuplot_close(h) ; - @endcode - */ -/*--------------------------------------------------------------------------*/ - -void gnuplot_plot_equation( - gnuplot_ctrl * h, - char * equation, - char * title -) -{ - char cmd[GP_CMD_SIZE]; - char plot_str[GP_EQ_SIZE] ; - char title_str[GP_TITLE_SIZE] ; - - if (title == NULL) { - strcpy(title_str, "no title") ; - } else { - strcpy(title_str, title) ; - } - if (h->nplots > 0) { - strcpy(plot_str, "replot") ; - } else { - strcpy(plot_str, "plot") ; - } - - sprintf(cmd, "%s %s title \"%s\" with %s", - plot_str, equation, title_str, h->pstyle) ; - gnuplot_cmd(h, cmd) ; - h->nplots++ ; - return ; -} - -/* vim: set ts=4 et sw=4 tw=75 */ diff --git a/papiplot/src/gnuplot_i.h b/papiplot/src/gnuplot_i.h deleted file mode 100644 index 606504a..0000000 --- a/papiplot/src/gnuplot_i.h +++ /dev/null @@ -1,390 +0,0 @@ - -/*-------------------------------------------------------------------------*/ -/** - @file gnuplot_i.h - @author N. Devillard - @date Sep 1998 - @version $Revision: 1.11 $ - @brief C interface to gnuplot. - - gnuplot is a freely available, command-driven graphical display tool for - Unix. It compiles and works quite well on a number of Unix flavours as - well as other operating systems. The following module enables sending - display requests to gnuplot through simple C calls. - -*/ -/*--------------------------------------------------------------------------*/ - -/* - $Id: gnuplot_i.h,v 1.11 2003/01/27 08:58:04 ndevilla Exp $ - $Author: ndevilla $ - $Date: 2003/01/27 08:58:04 $ - $Revision: 1.11 $ - */ - -#ifndef _GNUPLOT_PIPES_H_ -#define _GNUPLOT_PIPES_H_ - -/*--------------------------------------------------------------------------- - Includes - ---------------------------------------------------------------------------*/ - -#include -#include -#include -#include -#include - - -/** Maximal number of simultaneous temporary files */ -#define GP_MAX_TMP_FILES 64 -/** Maximal size of a temporary file name */ -#define GP_TMP_NAME_SIZE 512 - - -/*--------------------------------------------------------------------------- - New Types - ---------------------------------------------------------------------------*/ - -/*-------------------------------------------------------------------------*/ -/** - @typedef gnuplot_ctrl - @brief gnuplot session handle (opaque type). - - This structure holds all necessary information to talk to a gnuplot - session. It is built and returned by gnuplot_init() and later used - by all functions in this module to communicate with the session, then - meant to be closed by gnuplot_close(). - - This structure is meant to remain opaque, you normally do not need - to know what is contained in there. - */ -/*-------------------------------------------------------------------------*/ - -typedef struct _GNUPLOT_CTRL_ { - /** Pipe to gnuplot process */ - FILE * gnucmd ; - - /** Number of currently active plots */ - int nplots ; - /** Current plotting style */ - char pstyle[32] ; - - /** Name of temporary files */ - char to_delete[GP_MAX_TMP_FILES][GP_TMP_NAME_SIZE] ; - /** Number of temporary files */ - int ntmp ; -} gnuplot_ctrl ; - -/*--------------------------------------------------------------------------- - Function ANSI C prototypes - ---------------------------------------------------------------------------*/ - - -/*-------------------------------------------------------------------------*/ -/** - @brief Find out where a command lives in your PATH. - @param pname Name of the program to look for. - @return pointer to statically allocated character string. - - This is the C equivalent to the 'which' command in Unix. It parses - out your PATH environment variable to find out where a command - lives. The returned character string is statically allocated within - this function, i.e. there is no need to free it. Beware that the - contents of this string will change from one call to the next, - though (as all static variables in a function). - - The input character string must be the name of a command without - prefixing path of any kind, i.e. only the command name. The returned - string is the path in which a command matching the same name was - found. - - Examples (assuming there is a prog named 'hello' in the cwd): - - @verbatim - gnuplot_get_program_path("hello") returns "." - gnuplot_get_program_path("ls") returns "/bin" - gnuplot_get_program_path("csh") returns "/usr/bin" - gnuplot_get_program_path("/bin/ls") returns NULL - @endverbatim - - */ -/*-------------------------------------------------------------------------*/ -char * gnuplot_get_program_path(char * pname); - -/*-------------------------------------------------------------------------*/ -/** - @brief Opens up a gnuplot session, ready to receive commands. - @return Newly allocated gnuplot control structure. - - This opens up a new gnuplot session, ready for input. The struct - controlling a gnuplot session should remain opaque and only be - accessed through the provided functions. - - The session must be closed using gnuplot_close(). - */ -/*--------------------------------------------------------------------------*/ -gnuplot_ctrl * gnuplot_init(void); - -/*-------------------------------------------------------------------------*/ -/** - @brief Closes a gnuplot session previously opened by gnuplot_init() - @param handle Gnuplot session control handle. - @return void - - Kills the child PID and deletes all opened temporary files. - It is mandatory to call this function to close the handle, otherwise - temporary files are not cleaned and child process might survive. - - */ -/*--------------------------------------------------------------------------*/ -void gnuplot_close(gnuplot_ctrl * handle); - -/*-------------------------------------------------------------------------*/ -/** - @brief Sends a command to an active gnuplot session. - @param handle Gnuplot session control handle - @param cmd Command to send, same as a printf statement. - - This sends a string to an active gnuplot session, to be executed. - There is strictly no way to know if the command has been - successfully executed or not. - The command syntax is the same as printf. - - Examples: - - @code - gnuplot_cmd(g, "plot %d*x", 23.0); - gnuplot_cmd(g, "plot %g * cos(%g * x)", 32.0, -3.0); - @endcode - - Since the communication to the gnuplot process is run through - a standard Unix pipe, it is only unidirectional. This means that - it is not possible for this interface to query an error status - back from gnuplot. - */ -/*--------------------------------------------------------------------------*/ -void gnuplot_cmd(gnuplot_ctrl * handle, char * cmd, ...); - -/*-------------------------------------------------------------------------*/ -/** - @brief Change the plotting style of a gnuplot session. - @param h Gnuplot session control handle - @param plot_style Plotting-style to use (character string) - @return void - - The provided plotting style is a character string. It must be one of - the following: - - - lines - - points - - linespoints - - impulses - - dots - - steps - - errorbars - - boxes - - boxeserrorbars - */ -/*--------------------------------------------------------------------------*/ -void gnuplot_setstyle(gnuplot_ctrl * h, char * plot_style); - -/*-------------------------------------------------------------------------*/ -/** - @brief Sets the x label of a gnuplot session. - @param h Gnuplot session control handle. - @param label Character string to use for X label. - @return void - - Sets the x label for a gnuplot session. - */ -/*--------------------------------------------------------------------------*/ -void gnuplot_set_xlabel(gnuplot_ctrl * h, char * label); - - -/*-------------------------------------------------------------------------*/ -/** - @brief Sets the y label of a gnuplot session. - @param h Gnuplot session control handle. - @param label Character string to use for Y label. - @return void - - Sets the y label for a gnuplot session. - */ -/*--------------------------------------------------------------------------*/ -void gnuplot_set_ylabel(gnuplot_ctrl * h, char * label); - -/*-------------------------------------------------------------------------*/ -/** - @brief Resets a gnuplot session (next plot will erase previous ones). - @param h Gnuplot session control handle. - @return void - - Resets a gnuplot session, i.e. the next plot will erase all previous - ones. - */ -/*--------------------------------------------------------------------------*/ -void gnuplot_resetplot(gnuplot_ctrl * h); - - -/*-------------------------------------------------------------------------*/ -/** - @brief Plots a 2d graph from a list of doubles. - @param handle Gnuplot session control handle. - @param d Array of doubles. - @param n Number of values in the passed array. - @param title Title of the plot. - @return void - - Plots out a 2d graph from a list of doubles. The x-coordinate is the - index of the double in the list, the y coordinate is the double in - the list. - - Example: - - @code - gnuplot_ctrl *h ; - double d[50] ; - int i ; - - h = gnuplot_init() ; - for (i=0 ; i<50 ; i++) { - d[i] = (double)(i*i) ; - } - gnuplot_plot_x(h, d, 50, "parabola") ; - sleep(2) ; - gnuplot_close(h) ; - @endcode - */ -/*--------------------------------------------------------------------------*/ -void gnuplot_plot_x(gnuplot_ctrl * handle, double * d, int n, char * title); - -/*-------------------------------------------------------------------------*/ -/** - @brief Plot a 2d graph from a list of points. - @param handle Gnuplot session control handle. - @param x Pointer to a list of x coordinates. - @param y Pointer to a list of y coordinates. - @param n Number of doubles in x (assumed the same as in y). - @param title Title of the plot. - @return void - - Plots out a 2d graph from a list of points. Provide points through a list - of x and a list of y coordinates. Both provided arrays are assumed to - contain the same number of values. - - @code - gnuplot_ctrl *h ; - double x[50] ; - double y[50] ; - int i ; - - h = gnuplot_init() ; - for (i=0 ; i<50 ; i++) { - x[i] = (double)(i)/10.0 ; - y[i] = x[i] * x[i] ; - } - gnuplot_plot_xy(h, x, y, 50, "parabola") ; - sleep(2) ; - gnuplot_close(h) ; - @endcode - */ -/*--------------------------------------------------------------------------*/ -void gnuplot_plot_xy( - gnuplot_ctrl * handle, - double * x, - double * y, - int n, - char * title -) ; - - -/*-------------------------------------------------------------------------*/ -/** - @brief Open a new session, plot a signal, close the session. - @param title Plot title - @param style Plot style - @param label_x Label for X - @param label_y Label for Y - @param x Array of X coordinates - @param y Array of Y coordinates (can be NULL) - @param n Number of values in x and y. - @return - - This function opens a new gnuplot session, plots the provided - signal as an X or XY signal depending on a provided y, waits for - a carriage return on stdin and closes the session. - - It is Ok to provide an empty title, empty style, or empty labels for - X and Y. Defaults are provided in this case. - */ -/*--------------------------------------------------------------------------*/ -void gnuplot_plot_once( - char * title, - char * style, - char * label_x, - char * label_y, - double * x, - double * y, - int n -); - -/*-------------------------------------------------------------------------*/ -/** - @brief Plot a slope on a gnuplot session. - @param handle Gnuplot session control handle. - @param a Slope. - @param b Intercept. - @param title Title of the plot. - @return void - - Plot a slope on a gnuplot session. The provided slope has an - equation of the form y=ax+b - - Example: - - @code - gnuplot_ctrl * h ; - double a, b ; - - h = gnuplot_init() ; - gnuplot_plot_slope(h, 1.0, 0.0, "unity slope") ; - sleep(2) ; - gnuplot_close(h) ; - @endcode - */ -/*--------------------------------------------------------------------------*/ -void gnuplot_plot_slope( - gnuplot_ctrl * handle, - double a, - double b, - char * title -) ; - -/*-------------------------------------------------------------------------*/ -/** - @brief Plot a curve of given equation y=f(x). - @param h Gnuplot session control handle. - @param equation Equation to plot. - @param title Title of the plot. - @return void - - Plots out a curve of given equation. The general form of the - equation is y=f(x), you only provide the f(x) side of the equation. - - Example: - - @code - gnuplot_ctrl *h ; - char eq[80] ; - - h = gnuplot_init() ; - strcpy(eq, "sin(x) * cos(2*x)") ; - gnuplot_plot_equation(h, eq, "sine wave", normal) ; - gnuplot_close(h) ; - @endcode - */ -/*--------------------------------------------------------------------------*/ -void gnuplot_plot_equation(gnuplot_ctrl * h, char * equation, char * title) ; - -#endif diff --git a/papiplot/src/plot.c b/papiplot/src/plot.c deleted file mode 100644 index 31fc1e9..0000000 --- a/papiplot/src/plot.c +++ /dev/null @@ -1,754 +0,0 @@ -/* - * plot.c - * - * Created on: Jul 16, 2014 - * Author: aarias - */ - -#include "gnuplot_i.h" -#include -#include -#include - -typedef struct event_acumulator { - char* event_name; - unsigned long long count; -}event_acumulator; - -typedef struct event_acum_for_action { - char* action_name; - int events_nb; - event_acumulator *acumulator[]; -}event_acum_for_action; - -typedef struct event_acum_for_actor { - char *proc_file_path; - char *actor_name; - int actions_nb; - event_acum_for_action *actions[]; -} event_acum_for_actor; - -event_acum_for_actor* process_data (char* path_todir, char* path_tofile, char* filename, char* path_to_totals); -int get_nb_of_actors_in_dir(char* path); -unsigned long long get_number(char *line); -void search_and_plot(char *path); -void struct_test(struct event_acum_for_actor *data); -int get_events_nb(char *path); -int get_actions_nb_in_file(char* path_tofile); -int NOLABELS; -unsigned int res_x; -unsigned int res_y; -int tics_font_size; -int labels_font_size; - -void printhelp(char** argv){ - printf("\tPapiPlot options:\n" - "\t-p [path]" - "\t Set path to the papi-output folder generated with Papify. If not specified, current directory will be used.\n\n" - "\t-x [res_x]" - "\t Change horizontal resolution. If not specified, default is 1680.\n\n" - "\t-y [res_y]" - "\t Change vertical resolution. If not specified, default is 1050.\n\n" - "\t-t [font size]" - "\t Change tics font size. If not specified, default is 8.\n\n" - "\t-l [font size]" - "\t Change labels font size. If not specified, default is 8.\n\n" - "\t-n \t \tNo labels will be printed\n\n" - "\t-h \t \tPrint help\n\n" - "\tPapiPlot requires GNUPLOT. If not installed, assuming you are on Ubuntu, run:\n" - "\tsudo apt-get install gnuplot\n\n"); -} - -int main(int argc, char **argv) { - int c, len; - res_x = 1680; - res_y = 1050; - tics_font_size = 8; - labels_font_size = 8; - char* path = NULL; - char* temp; - - while ((c = getopt (argc, argv, "l:t:nhp:x:y:")) != -1) { - switch (c) - { - case 'h': - printhelp(argv); - exit(0); - case 'x': - res_x = atoi(optarg); - break; - case 'y': - res_y = atoi(optarg); - break; - case 'l': - labels_font_size = atoi(optarg); - break; - case 't': - tics_font_size = atoi(optarg); - break; - case 'p': - temp = optarg; - len = strlen(temp)+2; - path = malloc(len); - strcpy(path, temp); - path[len-2]='/'; - path[len-1]='\0'; - break; - case 'n': - NOLABELS = 1; - break; - case '?': - if (isprint (optopt)) { - fprintf (stderr, "Unknown option '-%c'.\n", optopt); - } - else { - fprintf (stderr, - "Unknown option character `\\x%x'.\n", - optopt); - } - return 1; - default: - printhelp(argv); - abort(); - } - } - - if(path==NULL){ - char cwd[3000]; - if(getcwd(cwd, sizeof(cwd))==NULL){ - perror("Error retrieving working path:"); - exit(0); - } - len = strlen(cwd)+2; - path = malloc(len); - strcpy(path, cwd); - path[len-2]='/'; - path[len-1]='\0'; - } - - search_and_plot(path); - - printf("All done!\n"); - return 0; -} - -void configure_handle(gnuplot_ctrl * h, int number_of_events, int number_of_elements){ - - gnuplot_cmd(h,"reset"); - - gnuplot_cmd(h, "dx=.7"); - gnuplot_cmd(h, "n=%d", number_of_events); - - gnuplot_cmd(h,"list = ''"); - gnuplot_cmd(h,"index(w) = words(substr(list, 0, strstrt(list, w)-1))"); - gnuplot_cmd(h,"add_label(d) = (strstrt(list, d) == 0 ? list=list.' '.d : '')"); - - gnuplot_cmd(h, "set datafile separator \";\""); - gnuplot_cmd(h, "set xtics rotate by -25"); - gnuplot_cmd(h, "set logscale y"); - - gnuplot_cmd(h, "set term png truecolor"); - gnuplot_cmd(h, "set grid"); - // - gnuplot_cmd(h, "set style fill transparent solid 0.5 noborder"); - - - gnuplot_cmd(h, "set term png size %d,%d", res_x, res_y); - - gnuplot_cmd(h, "set ylabel \"Number of occurrences\""); - - if(number_of_elements==1){ - float x_top = 0.7+number_of_events/10.0; - float x_low = -0.7; - //printf("x_top = %.2f\nx_low = %.2f\n", x_top, x_low); - gnuplot_cmd(h, "set xrange [%.2f:%.2f]", x_low, x_top); - gnuplot_cmd(h, "total_box_width_relative=0.3"); - gnuplot_cmd(h, "gap_width_relative=0.1"); - gnuplot_cmd(h, "d_width=(gap_width_relative+total_box_width_relative)*dx/2."); - gnuplot_cmd(h, "set boxwidth total_box_width_relative/n"); - } - else { - gnuplot_cmd(h, "total_box_width_relative=0.3"); - gnuplot_cmd(h, "gap_width_relative=0.1"); - gnuplot_cmd(h, "d_width=(gap_width_relative+total_box_width_relative)*dx/2."); - gnuplot_cmd(h, "set boxwidth total_box_width_relative/n relative"); - } - - //gnuplot_cmd(h, "set xtics out"); - //gnuplot_cmd(h, "set xtics nomirror"); - //gnuplot_cmd(h, "set xtics autofreq"); - gnuplot_cmd(h, "set xtics font \"monospace,%d\"", tics_font_size); - gnuplot_cmd(h, "set tic scale 0"); - gnuplot_cmd(h, "set grid noxtics"); - - gnuplot_cmd(h, "set label at character 1,1 \"Generated with Papify\""); - gnuplot_cmd(h, "set format y \"%%.0se%%S\""); - -} - -void plot_overall(char* output_path, char *path, int number_of_actors, int number_of_events) { - int i; - gnuplot_ctrl * h ; - h = gnuplot_init() ; - - //int label_rot = 20; - configure_handle(h, number_of_events, number_of_actors); - gnuplot_cmd(h, "set output \"%s/papiplot_overall_.png\"", output_path); - gnuplot_cmd(h, "set title \"Events per actor\""); - gnuplot_cmd(h, "set xlabel \"Actors\""); - - - //draw lines: - gnuplot_cmd(h, "plot \\"); - if(number_of_events==1){ - i = 0; - gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:xtic(1) w boxes title columnhead,\\", path, i, i+2); - } - else if (number_of_events==0){ - printf("nothing to plot\n"); - exit(0); - } - else{ - for(i=0;iPAPI stats\n" - "

Papify stats processed with PapiPlot


\n"); -} -void html_close(FILE* htmlfile, char* path){ - fprintf(htmlfile, "

Overall: Events per actor

\"\"""); - - - - int events_nb = get_events_nb(path)+1; - int i, j; - char* token; - char buf[1500]; - - FILE* ofile = fopen(path, "r"); - - fprintf(htmlfile,"" - ""); - - if(fgets(buf, 1500, ofile)==NULL){ - perror(""); - } - - token = strtok(buf,";"); - for(i=0;i%s
\n", token); - } - fprintf(htmlfile,"
\n"); - - int actors_nb = get_actions_nb_in_file(path); - for(i=0;i\n"); - if(fgets(buf, 1500, ofile)==NULL) - perror(""); - token = strtok(buf,";"); - for(j=0;j%s
\n", token); - token = strtok(NULL,";"); - } - fprintf(htmlfile,"\n"); - } - - fprintf(htmlfile,"
Actor
\n"); - fprintf(htmlfile,"
\n"); - fprintf(htmlfile,"
\n"); - - - fprintf(htmlfile, ""); - fclose(ofile); -} - -void html_actor(FILE* htmlfile, event_acum_for_actor* data){ - fprintf(htmlfile,"\n"); - - fprintf(htmlfile,"
" - ""); - - - int i, j; - fprintf(htmlfile, "

Stats for actor \"%s\"

\n",data->actor_name); - - fprintf(htmlfile, "\"\""\n",data->actor_name); - - - for(i=0; iactions[0]->events_nb;i++){ - fprintf(htmlfile,"\n", data->actions[0]->acumulator[i]->event_name); - } - fprintf(htmlfile,"\n"); - - - for(i=0; iactions_nb;i++){ - fprintf(htmlfile,"\n"); - fprintf(htmlfile,"\n", data->actions[i]->action_name); - for(j=0; jactions[i]->events_nb;j++){ - fprintf(htmlfile,"\n", data->actions[i]->acumulator[j]->count); - } - fprintf(htmlfile,"\n"); - } - fprintf(htmlfile,"
Action
%s
%s
%llu
\n"); - fprintf(htmlfile,"
\n"); - fprintf(htmlfile,"
\n"); -} - -void search_and_plot(char *path) { - - char * path_to_totals = malloc(sizeof(char)*(strlen(path)+strlen("plotdata_papi_totals.csv")+2)); - strcpy(path_to_totals, path); - strcat(path_to_totals,"plotdata_papi_totals.csv"); - - FILE* datafile = fopen(path_to_totals,"w");//reset - fclose(datafile); - - char * html = malloc(sizeof(char)*(strlen(path)+strlen("papiplot.html")+2)); - strcpy(html, path); - strcat(html,"papiplot.html"); - FILE* htmlfile = fopen(html,"w"); - html_init(htmlfile); - int actors_nb = get_nb_of_actors_in_dir(path); - event_acum_for_actor* data; - - struct dirent *pDirent; - DIR *pDir; - - pDir = opendir (path); - if (pDir == NULL) { - perror ("Cannot open directory"); - exit(1); - } - char * path_to_csv; - - while ((pDirent = readdir(pDir)) != NULL) { - if(is_papioutput(pDirent->d_name)) { - printf("Plotting %s\n", pDirent->d_name); - path_to_csv = malloc(sizeof(char)*(strlen(path)+strlen(pDirent->d_name)+2)); - strcpy(path_to_csv, path); - strcat(path_to_csv,"/"); - strcat(path_to_csv,pDirent->d_name); - data = process_data(path, path_to_csv, pDirent->d_name, path_to_totals); - if(data->actions_nb == 0) - printf(" no data..\n"); - else - plot(path, data->proc_file_path, data->actor_name, data->actions_nb, data->actions[0]->events_nb); - html_actor(htmlfile, data); - remove(data->proc_file_path); - free(data); - } - } - printf("Plotting overalls\n"); - plot_overall(path, path_to_totals, actors_nb, get_events_nb(path_to_totals)+1); - - html_close(htmlfile, path_to_totals); - remove(path_to_totals); - - free(path_to_totals); - free(html); - fclose(htmlfile); - closedir (pDir); - return; -} - -event_acum_for_actor* process_data (char* path_todir, char* path_tofile, char* filename, char* path_to_totals){ - char buf[1500]; - char *token; - event_acum_for_actor* actor; - char* path_todatafile = malloc(sizeof(char)*(strlen(path_todir)+strlen("/plotdata_")+strlen(filename)+1)); - char* actor_name = malloc(sizeof(char)*(strlen(filename)+1)); - strcpy(actor_name,filename); - //memmove(actor_name, actor_name+12, strlen(actor_name));//or - actor_name+=12; - - strcpy(path_todatafile, path_todir); - strcat(path_todatafile,"/plotdata_"); - char temp2[strlen(actor_name)]; - strcpy(temp2, actor_name); - strcat(path_todatafile,actor_name); - //printf("creating %s\n", path_todatafile); - - strcpy(actor_name, temp2); - int events_nb = get_events_nb(path_tofile); - //printf("we have %d actions here\n",get_actions_nb_in_file(path_tofile));///////////////////////////////////////////// - //get_actions_nb_in_file(path_tofile); - int actions_nb=get_actions_nb_in_file(path_tofile); - if(actions_nb == 0) - actor = malloc(sizeof(event_acum_for_actor)+sizeof(event_acum_for_action*));//weird memory is weird.. - else - actor = malloc(sizeof(event_acum_for_actor)+sizeof(event_acum_for_action*)*(actions_nb)); - actor->actor_name = malloc(strlen(actor_name)+1); - strcpy(actor->actor_name,actor_name); - - actor->proc_file_path = path_todatafile; - actor->actions_nb = actions_nb; - int i, j; - - - for(i=0;iactions[i] = malloc(sizeof(event_acum_for_action)+sizeof(event_acumulator)*events_nb);//weird memory is weird.. - actor->actions[i]->events_nb = events_nb; - for(j=0;jactions[i]->acumulator[j] = malloc(sizeof(event_acumulator)); - } - } - - - for(j = 0; j actions_nb; j++){ - actor->actions[j]->action_name=NULL; - for(i = 0; i actions[j]->events_nb; i++){ - actor->actions[j]->acumulator[i]->count = 0; - } - } - - FILE* ofile = fopen(path_tofile, "r"); - if(fgets(buf,1500,ofile)==NULL) perror("");//read first line - token = strtok(buf,";"); - token = strtok(NULL,";");//skip action column (actot name) - for(i=0;iactions[0]->events_nb;i++){ - token = strtok(NULL,";"); - for(j = 0; j actions_nb; j++){ - if(token[strlen(token)-1]=='\n') token[strlen(token)-1] = '\0'; - actor->actions[j]->acumulator[i]->event_name = malloc(strlen(token)+1); - strcpy(actor->actions[j]->acumulator[i]->event_name, token); - } - } - - int found = -1; - int found_actions = 0; - int current; - - - long long unsigned int totals[events_nb]; - for (i=0;iactions_nb != 0) { - while(fgets(buf,1500,ofile)!=NULL){ - token = strtok(buf,";"); - token = strtok(NULL,";");//read action name - for(i=0; iactions_nb; i++){ - if(actor->actions[i]->action_name==NULL) - break; - else { - result = strcmp(actor->actions[i]->action_name,token); - if(result==0){ - found = i; - break; - } - else { - } - } - } - - if (found == -1){ - //printf("not found, adding action %s\n", token); - actor->actions[found_actions]->action_name = malloc(strlen(token)+1); - strcpy(actor->actions[found_actions]->action_name,token); - } - - current = (found == -1)? found_actions++ : found; - - - for(i = 0; i actions[current]->events_nb; i++){ - token = strtok(NULL,";"); - actor->actions[current]->acumulator[i]->count += get_number(token); - totals[i] += get_number(token); - //printf("adding %s (%llu).. totals[%d] = %llu\n", token, get_number(token), i, totals[i]); - } - found = -1; - } - } - - fclose(ofile); - - //writing events per action - FILE* datafile = fopen(path_todatafile,"w"); - fprintf(datafile,"Action;"); - for(i=0;i< events_nb;i++) - fprintf(datafile,"%s;",actor->actions[0]->acumulator[i]->event_name); - fprintf(datafile,"\n"); - - for(i = 0; i< actions_nb;i++){ - fprintf(datafile,"%s;", actor->actions[i]->action_name); - for(j=0; j < events_nb; j++){ - fprintf(datafile,"%llu;", actor->actions[i]->acumulator[j]->count); - } - fprintf(datafile,"\n"); - } - fclose(datafile); - - //adding to totals per actor - int label_set = 0; - datafile = fopen(path_to_totals,"r"); - if(fgets(buf,1500,datafile)==NULL);//nothing wrong here! - if(strstr(buf,"Actor;")!=NULL) label_set = 1; - fclose(datafile); - - //appending to totals - datafile = fopen(path_to_totals,"a"); - if(label_set == 0){ - fprintf(datafile,"Actor;"); - for(i=0;i< events_nb;i++) - fprintf(datafile,"%s;",actor->actions[0]->acumulator[i]->event_name); - fprintf(datafile,"\n"); - } - - fprintf(datafile,"%s;",strtok(actor->actor_name,".")); - for(j=0; j < events_nb; j++){ - fprintf(datafile,"%llu;", totals[j]); - } - fprintf(datafile,"\n"); - fclose(datafile); - - - return actor; -} - -unsigned long long get_number(char *line){ //removes quotes from string number - int lineLength = strlen(line); - int j = 0; - int i; - for (i = 0; i < lineLength; i++) - { - if (line[i] == '\\') - { - line[j++] = line[i++]; - line[j++] = line[i]; - if (line[i] == '\0') - break; - } - else if (line[i] != '"') - line[j++] = line[i]; - } - line[j] = '\0'; - - //char *tempptr=NULL; - return strtoul(line,NULL,10); -} - -//test structure -void struct_test(struct event_acum_for_actor *data){ - int i,j; - printf("Testing structure\n"); - - printf("Actor name: %s\n", data->actor_name); - printf("Path to processed data file: %s\n", data->proc_file_path); - printf("Actions number: %d\n", data->actions_nb); - - for(i = 0; iactions_nb;i++){ - printf("\tAction name: %s\n", data->actions[i]->action_name); - printf("\tNumber of events: %d\n", data->actions[i]->events_nb); - for(j=0; j < data->actions[i]->events_nb; j++){ - printf("\t\tEvent: %s, total: %llu\n", data->actions[i]->acumulator[j]->event_name, data->actions[i]->acumulator[j]->count); - } - - //printf("Event: %s, total: %lu\n",data->, data->acumulator->acum[i]); - } -} - -int get_nb_of_actors_in_dir(char* path){ - int actors_nb=0; - struct dirent *pDirent; - DIR *pDir; - - pDir = opendir (path); - if (pDir == NULL) { - perror ("Cannot open directory\n"); - exit(1); - } - - while ((pDirent = readdir(pDir)) != NULL) { - if(is_papioutput(pDirent->d_name)) { - actors_nb++; - } - } - - closedir (pDir); - - return actors_nb; -} - -int get_actions_nb_in_file(char* path_tofile){//weird memory allocation... ¿??¿ - int actions_nb = 0; - char** theActions; - char* token; - char buf[1500]; - int i; - int found = -1; - theActions = malloc(0); - - FILE* ofile = fopen(path_tofile, "r"); - - if(fgets(buf,1500,ofile)==NULL) perror("");//skip labels lines - while(fgets(buf,1500,ofile)!=NULL){ - //printf("buf = %d (%d)\n", buf,strlen(buf)); - token = strtok(buf,";"); - token = strtok(NULL,";");//read action name - - for(i=0; i -#include - -#include "../src/gnuplot_i.h" - -#define SLEEP_LGTH 1 - - -int anim(void) -{ - gnuplot_ctrl * h1; - double phase ; - - printf("*** example of gnuplot control through C ***\n") ; - h1 = gnuplot_init() ; - - for (phase=0.1 ; phase<10 ; phase +=0.1) { - gnuplot_resetplot(h1) ; - gnuplot_cmd(h1, "plot sin(x+%g)", phase) ; - } - - for (phase=10 ; phase>=0.1 ; phase -=0.1) { - gnuplot_resetplot(h1) ; - gnuplot_cmd(h1, "plot sin(x+%g)", phase) ; - } - - gnuplot_close(h1) ; - return 0 ; -} - diff --git a/papiplot/test/example.c b/papiplot/test/example.c deleted file mode 100644 index bdc58cb..0000000 --- a/papiplot/test/example.c +++ /dev/null @@ -1,157 +0,0 @@ - -/* - * Examples of gnuplot_i.c usage - */ - -#include -#include - -#include "../src/gnuplot_i.h" - -#define SLEEP_LGTH 2 -#define NPOINTS 50 - -int example(void) -{ - gnuplot_ctrl * h1, - * h2, - * h3, - * h4 ; - double x[NPOINTS] ; - double y[NPOINTS] ; - int i ; - - /* - * Initialize the gnuplot handle - */ - printf("*** example of gnuplot control through C ***\n") ; - h1 = gnuplot_init() ; - - /* - * Slopes - */ - gnuplot_setstyle(h1, "lines") ; - - printf("*** plotting slopes\n") ; - printf("y = x\n") ; - gnuplot_plot_slope(h1, 1.0, 0.0, "unity slope") ; - sleep(SLEEP_LGTH) ; - - printf("y = 2*x\n") ; - gnuplot_plot_slope(h1, 2.0, 0.0, "y=2x") ; - sleep(SLEEP_LGTH) ; - - printf("y = -x\n") ; - gnuplot_plot_slope(h1, -1.0, 0.0, "y=-x") ; - sleep(SLEEP_LGTH) ; - - - /* - * Equations - */ - - gnuplot_resetplot(h1) ; - printf("\n\n") ; - printf("*** various equations\n") ; - printf("y = sin(x)\n") ; - gnuplot_plot_equation(h1, "sin(x)", "sine") ; - sleep(SLEEP_LGTH) ; - - printf("y = log(x)\n") ; - gnuplot_plot_equation(h1, "log(x)", "logarithm") ; - sleep(SLEEP_LGTH) ; - - printf("y = sin(x)*cos(2*x)\n") ; - gnuplot_plot_equation(h1, "sin(x)*cos(2*x)", "sine product") ; - sleep(SLEEP_LGTH) ; - - - /* - * Styles - */ - - gnuplot_resetplot(h1) ; - printf("\n\n") ; - printf("*** showing styles\n") ; - - printf("sine in points\n") ; - gnuplot_setstyle(h1, "points") ; - gnuplot_plot_equation(h1, "sin(x)", "sine") ; - sleep(SLEEP_LGTH) ; - - printf("sine in impulses\n") ; - gnuplot_setstyle(h1, "impulses") ; - gnuplot_plot_equation(h1, "sin(x)", "sine") ; - sleep(SLEEP_LGTH) ; - - printf("sine in steps\n") ; - gnuplot_setstyle(h1, "steps") ; - gnuplot_plot_equation(h1, "sin(x)", "sine") ; - sleep(SLEEP_LGTH) ; - - /* - * User defined 1d and 2d point sets - */ - - gnuplot_resetplot(h1) ; - gnuplot_setstyle(h1, "impulses") ; - printf("\n\n") ; - printf("*** user-defined lists of doubles\n") ; - for (i=0 ; i -#include -#include -#include - -#include "../src/gnuplot_i.h" - -int sinpng(void) -{ - gnuplot_ctrl * g = gnuplot_init(); - - gnuplot_cmd(g, "set terminal png"); - gnuplot_cmd(g, "set output \"sine.png\""); - gnuplot_plot_equation(g, "sin(x)", "Sine wave"); - gnuplot_close(g); - - return 0 ; -} - diff --git a/papiplot_HevcDecoder_Algo_Parser.png b/papiplot_HevcDecoder_Algo_Parser.png new file mode 100644 index 0000000..1620f52 Binary files /dev/null and b/papiplot_HevcDecoder_Algo_Parser.png differ diff --git a/papiplot_HevcDecoder_DBFilter_DeblockFilt.png b/papiplot_HevcDecoder_DBFilter_DeblockFilt.png new file mode 100644 index 0000000..0753d44 Binary files /dev/null and b/papiplot_HevcDecoder_DBFilter_DeblockFilt.png differ diff --git a/papiplot_HevcDecoder_DBFilter_GenerateBs.png b/papiplot_HevcDecoder_DBFilter_GenerateBs.png new file mode 100644 index 0000000..c8f02b9 Binary files /dev/null and b/papiplot_HevcDecoder_DBFilter_GenerateBs.png differ diff --git a/papiplot_HevcDecoder_DecodingPictureBuffer.png b/papiplot_HevcDecoder_DecodingPictureBuffer.png new file mode 100644 index 0000000..08feb3c Binary files /dev/null and b/papiplot_HevcDecoder_DecodingPictureBuffer.png differ diff --git a/papiplot_HevcDecoder_InterPrediction.png b/papiplot_HevcDecoder_InterPrediction.png new file mode 100644 index 0000000..556154b Binary files /dev/null and b/papiplot_HevcDecoder_InterPrediction.png differ diff --git a/papiplot_HevcDecoder_IntraPrediction.png b/papiplot_HevcDecoder_IntraPrediction.png new file mode 100644 index 0000000..3b5bb4b Binary files /dev/null and b/papiplot_HevcDecoder_IntraPrediction.png differ diff --git a/papiplot_HevcDecoder_SAO.png b/papiplot_HevcDecoder_SAO.png new file mode 100644 index 0000000..1c79188 Binary files /dev/null and b/papiplot_HevcDecoder_SAO.png differ diff --git a/papiplot_HevcDecoder_SelectCU.png b/papiplot_HevcDecoder_SelectCU.png new file mode 100644 index 0000000..a9dee16 Binary files /dev/null and b/papiplot_HevcDecoder_SelectCU.png differ diff --git a/papiplot_HevcDecoder_generateInfo_GenerateRefList.png b/papiplot_HevcDecoder_generateInfo_GenerateRefList.png new file mode 100644 index 0000000..2f07374 Binary files /dev/null and b/papiplot_HevcDecoder_generateInfo_GenerateRefList.png differ diff --git a/papiplot_HevcDecoder_generateInfo_MvComponentPred.png b/papiplot_HevcDecoder_generateInfo_MvComponentPred.png new file mode 100644 index 0000000..d4461d1 Binary files /dev/null and b/papiplot_HevcDecoder_generateInfo_MvComponentPred.png differ diff --git a/papiplot_HevcDecoder_xIT_Block_Merger.png b/papiplot_HevcDecoder_xIT_Block_Merger.png new file mode 100644 index 0000000..e42a81b Binary files /dev/null and b/papiplot_HevcDecoder_xIT_Block_Merger.png differ diff --git a/papiplot_HevcDecoder_xIT_IT16x16_IT16x16_1d_0.png b/papiplot_HevcDecoder_xIT_IT16x16_IT16x16_1d_0.png new file mode 100644 index 0000000..0077664 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT16x16_IT16x16_1d_0.png differ diff --git a/papiplot_HevcDecoder_xIT_IT16x16_IT16x16_1d_1.png b/papiplot_HevcDecoder_xIT_IT16x16_IT16x16_1d_1.png new file mode 100644 index 0000000..6ca7133 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT16x16_IT16x16_1d_1.png differ diff --git a/papiplot_HevcDecoder_xIT_IT16x16_Transpose16x16_0.png b/papiplot_HevcDecoder_xIT_IT16x16_Transpose16x16_0.png new file mode 100644 index 0000000..c12ea0b Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT16x16_Transpose16x16_0.png differ diff --git a/papiplot_HevcDecoder_xIT_IT16x16_Transpose16x16_1.png b/papiplot_HevcDecoder_xIT_IT16x16_Transpose16x16_1.png new file mode 100644 index 0000000..d55c24d Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT16x16_Transpose16x16_1.png differ diff --git a/papiplot_HevcDecoder_xIT_IT32x32_IT32x32_1d_0.png b/papiplot_HevcDecoder_xIT_IT32x32_IT32x32_1d_0.png new file mode 100644 index 0000000..1ff5026 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT32x32_IT32x32_1d_0.png differ diff --git a/papiplot_HevcDecoder_xIT_IT32x32_IT32x32_1d_1.png b/papiplot_HevcDecoder_xIT_IT32x32_IT32x32_1d_1.png new file mode 100644 index 0000000..0a867e0 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT32x32_IT32x32_1d_1.png differ diff --git a/papiplot_HevcDecoder_xIT_IT32x32_Transpose32x32_0.png b/papiplot_HevcDecoder_xIT_IT32x32_Transpose32x32_0.png new file mode 100644 index 0000000..2ef2e2e Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT32x32_Transpose32x32_0.png differ diff --git a/papiplot_HevcDecoder_xIT_IT32x32_Transpose32x32_1.png b/papiplot_HevcDecoder_xIT_IT32x32_Transpose32x32_1.png new file mode 100644 index 0000000..76f9ad3 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT32x32_Transpose32x32_1.png differ diff --git a/papiplot_HevcDecoder_xIT_IT4x4_IT4x4_1d_0.png b/papiplot_HevcDecoder_xIT_IT4x4_IT4x4_1d_0.png new file mode 100644 index 0000000..2a1736c Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT4x4_IT4x4_1d_0.png differ diff --git a/papiplot_HevcDecoder_xIT_IT4x4_IT4x4_1d_1.png b/papiplot_HevcDecoder_xIT_IT4x4_IT4x4_1d_1.png new file mode 100644 index 0000000..909f3d2 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT4x4_IT4x4_1d_1.png differ diff --git a/papiplot_HevcDecoder_xIT_IT4x4_Transpose4x4_0.png b/papiplot_HevcDecoder_xIT_IT4x4_Transpose4x4_0.png new file mode 100644 index 0000000..718bce2 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT4x4_Transpose4x4_0.png differ diff --git a/papiplot_HevcDecoder_xIT_IT4x4_Transpose4x4_1.png b/papiplot_HevcDecoder_xIT_IT4x4_Transpose4x4_1.png new file mode 100644 index 0000000..b62206d Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT4x4_Transpose4x4_1.png differ diff --git a/papiplot_HevcDecoder_xIT_IT8x8_IT8x8_1d_0.png b/papiplot_HevcDecoder_xIT_IT8x8_IT8x8_1d_0.png new file mode 100644 index 0000000..80dcf63 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT8x8_IT8x8_1d_0.png differ diff --git a/papiplot_HevcDecoder_xIT_IT8x8_IT8x8_1d_1.png b/papiplot_HevcDecoder_xIT_IT8x8_IT8x8_1d_1.png new file mode 100644 index 0000000..5a75eb4 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT8x8_IT8x8_1d_1.png differ diff --git a/papiplot_HevcDecoder_xIT_IT8x8_Transpose8x8_0.png b/papiplot_HevcDecoder_xIT_IT8x8_Transpose8x8_0.png new file mode 100644 index 0000000..a45a4b9 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT8x8_Transpose8x8_0.png differ diff --git a/papiplot_HevcDecoder_xIT_IT8x8_Transpose8x8_1.png b/papiplot_HevcDecoder_xIT_IT8x8_Transpose8x8_1.png new file mode 100644 index 0000000..0f45ec7 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT8x8_Transpose8x8_1.png differ diff --git a/papiplot_HevcDecoder_xIT_IT_Merger.png b/papiplot_HevcDecoder_xIT_IT_Merger.png new file mode 100644 index 0000000..c9758b7 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT_Merger.png differ diff --git a/papiplot_HevcDecoder_xIT_IT_Splitter.png b/papiplot_HevcDecoder_xIT_IT_Splitter.png new file mode 100644 index 0000000..8429e7a Binary files /dev/null and b/papiplot_HevcDecoder_xIT_IT_Splitter.png differ diff --git a/papiplot_HevcDecoder_xIT_invDST4x4_1st.png b/papiplot_HevcDecoder_xIT_invDST4x4_1st.png new file mode 100644 index 0000000..08c6b69 Binary files /dev/null and b/papiplot_HevcDecoder_xIT_invDST4x4_1st.png differ diff --git a/papiplot_HevcDecoder_xIT_invDST4x4_2nd.png b/papiplot_HevcDecoder_xIT_invDST4x4_2nd.png new file mode 100644 index 0000000..cba5eca Binary files /dev/null and b/papiplot_HevcDecoder_xIT_invDST4x4_2nd.png differ diff --git a/papiplot_Source.png b/papiplot_Source.png new file mode 100644 index 0000000..71f4ffc Binary files /dev/null and b/papiplot_Source.png differ diff --git a/papiplot_check_MD5_MD5SplitInfo.png b/papiplot_check_MD5_MD5SplitInfo.png new file mode 100644 index 0000000..661af49 Binary files /dev/null and b/papiplot_check_MD5_MD5SplitInfo.png differ diff --git a/papiplot_check_MD5_padding.png b/papiplot_check_MD5_padding.png new file mode 100644 index 0000000..993f934 Binary files /dev/null and b/papiplot_check_MD5_padding.png differ diff --git a/papiplot_check_MD5_shifter.png b/papiplot_check_MD5_shifter.png new file mode 100644 index 0000000..e6fa13a Binary files /dev/null and b/papiplot_check_MD5_shifter.png differ diff --git a/papiplot_display.png b/papiplot_display.png new file mode 100644 index 0000000..c6a4510 Binary files /dev/null and b/papiplot_display.png differ diff --git a/papiplot_overall_.png b/papiplot_overall_.png new file mode 100644 index 0000000..da52ad5 Binary files /dev/null and b/papiplot_overall_.png differ