From 5a782225f041ced47fd7f09bbc45de0869ecb75c Mon Sep 17 00:00:00 2001 From: lishutong Date: Tue, 29 Jun 2021 01:14:39 +0000 Subject: [PATCH] Add functions to analyse the composition of payload. payload_composition.js defines functions that could parse the manifest of payload and do statistical analysis based on different metrics. Currently, there are two functions: 1. Number of blocks (in target build) that are being operated, categorized by the installation operations. 2. Disk usage of the payload.bin, categorized by the installation operations. The output is currently a list of pairs: (Operation, Number), which can be later turned into input of visualized element. Test: Mannual Tested. Change-Id: I07defc23f6f04616656d8c9d3a7ecd05026bbbff --- .../otagui/src/components/OperationDetail.vue | 22 ++---- .../otagui/src/components/PartialCheckbox.vue | 13 +++- .../src/components/PayloadComposition.vue | 71 ++++++++++++++++++ tools/otagui/src/components/PayloadDetail.vue | 6 ++ tools/otagui/src/services/echarts_data.js | 14 ++++ .../src/services/payload_composition.js | 73 +++++++++++++++++++ 6 files changed, 182 insertions(+), 17 deletions(-) create mode 100644 tools/otagui/src/components/PayloadComposition.vue create mode 100644 tools/otagui/src/services/echarts_data.js create mode 100644 tools/otagui/src/services/payload_composition.js diff --git a/tools/otagui/src/components/OperationDetail.vue b/tools/otagui/src/components/OperationDetail.vue index e2626e535..4be93acd2 100644 --- a/tools/otagui/src/components/OperationDetail.vue +++ b/tools/otagui/src/components/OperationDetail.vue @@ -1,18 +1,18 @@ \ No newline at end of file diff --git a/tools/otagui/src/components/PartialCheckbox.vue b/tools/otagui/src/components/PartialCheckbox.vue index 426b261f8..fc7694fa6 100644 --- a/tools/otagui/src/components/PartialCheckbox.vue +++ b/tools/otagui/src/components/PartialCheckbox.vue @@ -34,4 +34,15 @@ export default { }, }, } - \ No newline at end of file + + + \ No newline at end of file diff --git a/tools/otagui/src/components/PayloadComposition.vue b/tools/otagui/src/components/PayloadComposition.vue new file mode 100644 index 000000000..420b96df6 --- /dev/null +++ b/tools/otagui/src/components/PayloadComposition.vue @@ -0,0 +1,71 @@ + + + + + \ No newline at end of file diff --git a/tools/otagui/src/components/PayloadDetail.vue b/tools/otagui/src/components/PayloadDetail.vue index 245be24a1..478119048 100644 --- a/tools/otagui/src/components/PayloadDetail.vue +++ b/tools/otagui/src/components/PayloadDetail.vue @@ -8,6 +8,10 @@
+

Payload Compositin

+
+ +

Partition List