Browse Source

escape analysis task

Darien Raymond 7 years ago
parent
commit
97b7c303b0
1 changed files with 18 additions and 0 deletions
  1. 18 0
      .vscode/tasks.json

+ 18 - 0
.vscode/tasks.json

@@ -28,6 +28,24 @@
       "label": "test",
       "args": ["-p", "1", "v2ray.com/core/..."],
       "group": "test"
+    },
+    {
+      "label": "Escape Analysis",
+      "type": "shell",
+      "command": "go build -gcflags -m .",
+      "problemMatcher": {
+        "pattern": {
+          "regexp": "^(.*):(.*):(.*): (.*)$",
+          "file": 1,
+          "line": 2,
+          "column": 3,
+          "message": 4
+        },
+        "fileLocation": ["relative", "${fileDirname}"]
+      },
+      "options": {
+        "cwd": "${fileDirname}"
+      }
     }
   ]
 }