-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
209 lines (209 loc) · 6.34 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
{
"name": "spear-viewer",
"displayName": "spear-viewer",
"description": "Display data from spear",
"version": "0.0.1",
"engines": {
"vscode": "^1.92.2"
},
"repository": "https://github.com/printerboi/spear-viewer",
"publisher": "Maximiliankrebs",
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:c++"
],
"main": "./dist/extension.js",
"contributes": {
"icons": {
"spear-logo": {
"description": "SPEAR logo",
"default": {
"fontPath": "media/SpearFont.woff",
"fontCharacter": "\\009A"
}
}
},
"commands": [
{
"command": "spear-viewer.profile",
"title": "Profile: Profile the energy usage of the system",
"icon": {
"light": "media/icons/light/play-circle.svg",
"dark": "media/icons/dark/play-circle.svg"
}
},
{
"command": "spear-viewer.analyze",
"title": "Analyze: Analyze the energy usage of the program",
"icon": {
"light": "media/icons/light/analyze.svg",
"dark": "media/icons/dark/analyze.svg"
}
},
{
"command": "spear-viewer.graph",
"title": "Spear: Generate the spear graph to a program"
},
{
"command": "spear-viewer.profile.refreshEntry",
"title": "Spear: Reload Profile",
"icon": {
"light": "media/icons/light/reload.svg",
"dark": "media/icons/dark/reload.svg"
}
},
{
"command": "spear-viewer.analysisresult.refreshEntry",
"title": "Spear: Reload Analysis",
"icon": {
"light": "media/icons/light/reload.svg",
"dark": "media/icons/dark/reload.svg"
}
},
{
"command": "spear-viewer.callgraph.refreshEntry",
"title": "Spear: Reload Callgraph",
"icon": {
"light": "media/icons/light/reload.svg",
"dark": "media/icons/dark/reload.svg"
}
}
],
"menus": {
"view/title": [
{
"command": "spear-viewer.profile.refreshEntry",
"when": "view == spearsidebar.profile",
"group": "navigation"
},
{
"command": "spear-viewer.profile",
"when": "view == spearsidebar.profile",
"group": "navigation"
},
{
"command": "spear-viewer.analysisresult.refreshEntry",
"when": "view == spearsidebar.analysisresult",
"group": "navigation"
},
{
"command": "spear-viewer.callgraph.refreshEntry",
"when": "view == spearsidebar.callgraph",
"group": "navigation"
}
],
"status": [
{
"command": "spear-viewer.analyze",
"alt": "spear-viewer.analyze",
"group": "navigation"
}
]
},
"configuration": {
"title": "SPEAR",
"properties": {
"spear-viewer.apppath": {
"type": "string",
"default": "/usr/bin/spear",
"description": "Path to the spear executeable"
},
"spear-viewer.profile.programspath": {
"type": "string",
"default": "/usr/share/spear/profile",
"description": "Path to the programs used by spear to profile the system"
},
"spear-viewer.profile.iterations": {
"type": "number",
"default": 10000,
"description": "Amount of repeated measurements during profiling. Higher values increase the accuracy of the measurement but will increase the runtime of the profiling (depending on the performance of your system)"
},
"spear-viewer.analyze.threshold": {
"type": "number",
"default": 0,
"description": "Defines a threshhold after which energy usage is highlighted. Any energy usage below this value will not be highlighted!"
},
"spear-viewer.analyze.loopbound": {
"type": "number",
"default": 100,
"description": "The value that approximates the number of loop iterations when the number of repetitions cannot be statically determined."
},
"spear-viewer.analyze.strategy": {
"type": "string",
"default": "worst",
"enum": [
"worst",
"average",
"best"
],
"description": "Defines a the analysis strategy used by spear.",
"enumDescriptions": [
"Conducts a worst-case analysis by always selecting the path with the highest energy contribution when multiple paths are available.",
"Conducts an average-case analysis by balancing paths with the highest and lowest energy usage.",
"Conducts a best-case analysis by always selecting the path with the smallest energy contribution when multiple paths are available."
]
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "spearviewersidebar",
"title": "SPEAR",
"icon": "media/spear.svg"
}
]
},
"views": {
"spearviewersidebar": [
{
"type": "tree",
"id": "spearsidebar.analysisresult",
"name": "Analyse"
},
{
"type": "tree",
"id": "spearsidebar.callgraph",
"name": "Callgraph"
},
{
"type": "tree",
"id": "spearsidebar.profile",
"name": "Profile"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^18.19.31",
"@types/vscode": "^1.83.0",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@vscode/test-cli": "^0.0.8",
"@vscode/test-electron": "^2.3.9",
"eslint": "^8.57.0",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@vscode/sudo-prompt": "^9.3.1",
"moment": "^2.30.1",
"yaml": "^2.4.2"
}
}