-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
139 lines (139 loc) · 3.79 KB
/
package.json
File metadata and controls
139 lines (139 loc) · 3.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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
{
"name": "go-memory-visualizer",
"displayName": "Go Memory Layout Visualizer",
"description": "Real-time visualization of Go struct memory layout, padding, and alignment with optimization suggestions",
"version": "1.0.0",
"publisher": "RhinoSoftware",
"author": {
"name": "RhinoSoftware"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/1rhino2/go-memory-visualizer"
},
"bugs": {
"url": "https://github.com/1rhino2/go-memory-visualizer/issues"
},
"homepage": "https://github.com/1rhino2/go-memory-visualizer#readme",
"galleryBanner": {
"color": "#00ADD8",
"theme": "dark"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Programming Languages",
"Visualization",
"Linters"
],
"keywords": [
"go",
"golang",
"memory",
"struct",
"layout",
"padding",
"alignment",
"optimization",
"performance",
"profiler",
"cache",
"visualizer",
"analyzer",
"go-tools",
"struct-layout",
"memory-optimization",
"cache-optimization",
"golang-tools",
"vscode-go"
],
"activationEvents": [
"onLanguage:go"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "goMemoryVisualizer.optimizeStruct",
"title": "Go: Optimize Struct Memory Layout"
},
{
"command": "goMemoryVisualizer.showMemoryLayout",
"title": "Go: Show Memory Layout"
},
{
"command": "goMemoryVisualizer.toggleArchitecture",
"title": "Go: Toggle Architecture (amd64/arm64/386)"
},
{
"command": "goMemoryVisualizer.exportLayout",
"title": "Go: Export Memory Layout Report"
},
{
"command": "goMemoryVisualizer.analyzeWorkspace",
"title": "Go: Analyze Workspace Memory Layout"
},
{
"command": "goMemoryVisualizer.compareArchitectures",
"title": "Go: Compare Struct Layout Across Architectures"
}
],
"configuration": {
"title": "Go Memory Visualizer",
"properties": {
"goMemoryVisualizer.defaultArchitecture": {
"type": "string",
"enum": [
"amd64",
"arm64",
"386"
],
"default": "amd64",
"description": "Default architecture for memory layout calculation"
},
"goMemoryVisualizer.showInlineAnnotations": {
"type": "boolean",
"default": true,
"description": "Show inline memory layout annotations above struct fields"
},
"goMemoryVisualizer.highlightPadding": {
"type": "boolean",
"default": true,
"description": "Highlight padding waste in structs"
},
"goMemoryVisualizer.paddingWarningThreshold": {
"type": "number",
"default": 8,
"description": "Minimum padding bytes to trigger warning (bytes)"
},
"goMemoryVisualizer.showCacheLineWarnings": {
"type": "boolean",
"default": true,
"description": "Show warnings when structs cross 64-byte cache line boundaries"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src",
"test": "npm run compile && node --test out/test/*.test.js",
"audit": "npm audit --audit-level=moderate",
"audit:fix": "npm audit fix",
"security-check": "npm audit && npm run lint"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "20.x",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^8.59.2",
"@typescript-eslint/parser": "^8.59.2",
"@vscode/test-electron": "^2.3.8",
"eslint": "^10.3.0",
"typescript": "^5.3.3"
}
}