-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
226 lines (226 loc) · 5.93 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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
{
"name": "austin-vscode",
"displayName": "Austin VS Code",
"publisher": "p403n1x87",
"description": "Austin extension for VS Code",
"version": "0.17.3",
"engines": {
"vscode": "^1.57.0"
},
"repository": {
"type": "github",
"url": "https://github.com/p403n1x87/austin-vscode"
},
"categories": [
"Other"
],
"keywords": [
"python",
"profiling",
"performance",
"devtools"
],
"license": "MIT",
"icon": "art/logo.png",
"activationEvents": [
"onCommand:austin-vscode.profile",
"onCommand:austin-vscode.load",
"onStartupFinished",
"onView:austin-vscode.flame-graph",
"onView:austin-vscode.austin-stats"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "Austin",
"properties": {
"austin.path": {
"description": "Specifies the absolute path to the Austin binary. Leave blank to discover from PATH",
"type": "string"
},
"austin.interval": {
"description": "The sampling interval, in microseconds",
"type": "number",
"default": 100
},
"austin.mode": {
"description": "Profiling mode",
"type": "string",
"enum": [
"Wall time",
"CPU time",
"Memory"
],
"enumDescriptions": [
"Estimate wall-clock time",
"Estimate CPU time"
],
"default": "Wall time"
},
"austin.binaryMode": {
"description": "Binary mode (MOJO output)",
"type": "boolean",
"default": false
},
"austin.lineStats": {
"description": "Line statistics",
"type": "string",
"enum": [
"Percent",
"Absolute",
"Both"
],
"enumDescriptions": [
"Percent of the metric relative to the total observed",
"Absolute metric values",
"Both percent and absolute metric values"
],
"default": "Percent"
}
}
},
"viewsContainers": {
"panel": [
{
"id": "flame-graph-container",
"title": "Flame Graph",
"icon": "media/austin.svg"
}
],
"activitybar": [
{
"id": "austin-stats",
"title": "Austin Stats",
"icon": "media/austin-activitybar.svg"
}
]
},
"views": {
"flame-graph-container": [
{
"type": "webview",
"id": "austin-vscode.flame-graph",
"name": "Flame Graph",
"icon": "media/austin.svg"
}
],
"austin-stats": [
{
"id": "austin-vscode.callStacks",
"name": "Call Stacks",
"contextualTitle": "Call Stacks"
},
{
"id": "austin-vscode.top",
"name": "Top",
"contextualTitle": "Top"
}
]
},
"commands": [
{
"command": "austin-vscode.profile",
"title": "Profile with Austin"
},
{
"command": "austin-vscode.load",
"title": "Load Austin Samples ..."
}
],
"keybindings": [
{
"command": "austin-vscode.load",
"key": "ctrl+shift+a",
"mac": "cmd+shift+a"
},
{
"command": "austin-vscode.profile",
"key": "shift+f5",
"mac": "shift+f5",
"when": "!inDebugMode && editorLangId == python"
}
],
"taskDefinitions": [
{
"type": "austin",
"required": [],
"properties": {
"file": {
"type": "string",
"description": "The python file path to profile."
},
"args": {
"type": "array",
"description": "Optional list of arguments to the task"
},
"command": {
"type": "array",
"description": "The command to run, together with its arguments, e.g. poetry."
},
"mode": {
"description": "Profiling mode",
"type": "string",
"enum": [
"Wall time",
"CPU time"
],
"enumDescriptions": [
"Estimate wall-clock time",
"Estimate CPU time"
]
},
"interval": {
"description": "The sampling interval, in microseconds",
"type": "number"
},
"austinArgs": {
"type": "array",
"description": "Optional list of austin command-line options"
},
"profileName": {
"type": "string",
"description": "Name of the generated profile"
},
"envFile": {
"type": "string",
"description": "Path to a .env file to load environment variables from"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"@types/vscode": "^1.57.0",
"@typescript-eslint/eslint-plugin": "^4.9.0",
"@typescript-eslint/parser": "^4.9.0",
"@vscode/test-electron": "^2.3.8",
"esbuild": "^0.13.13",
"eslint": "^7.15.0",
"glob": "^7.1.6",
"mocha": "^10.2.0",
"typescript": "^4.1.2"
},
"extensionDependencies": [
"ms-python.python"
],
"dependencies": {
"d3": "^7.8.2",
"d3-flame-graph": "^4.0.6",
"dotenv": "^16.3.1"
}
}