From 6827d48889377e131e02fc311904ee3786fb7cd2 Mon Sep 17 00:00:00 2001
From: j2-pelczar <jakub2.pelczar@live.uwe.ac.uk>
Date: Wed, 27 Nov 2024 21:34:59 +0000
Subject: [PATCH] Upload New File

---
 worksheet_two/.vscode/tasks.json | 48 ++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 worksheet_two/.vscode/tasks.json

diff --git a/worksheet_two/.vscode/tasks.json b/worksheet_two/.vscode/tasks.json
new file mode 100644
index 0000000..a79fe08
--- /dev/null
+++ b/worksheet_two/.vscode/tasks.json
@@ -0,0 +1,48 @@
+{
+    "version": "2.0.0",
+    "tasks": [
+        {
+            "type": "shell",
+            "label": "Build benchmark test",
+            "command": "g++",
+            "args": [
+                "-std=c++20",               // Use C++20
+                "-g",                       // Debugging information
+                "task 3/benchmark.cpp",     // Path to benchmark source file
+                "task 3/bump_up_allocator.cpp",  // Path to bump_up_allocator source
+                "task 3/bump_down_allocator.cpp",  // Path to bump_down_allocator source
+                "-I\"C:/Users/vanco/Desktop/CS Year 3/1st Semester/Advanced systems programming/worksheet_two/task 3\"", // Include path for header files
+                "-o",                       // Output file
+                "benchmark"                 // Output executable name
+            ],
+            "options": {
+                "cwd": "${workspaceFolder}/task 3",
+                "shell": {
+                    "executable": "powershell.exe",
+                    "args": ["-Command"]
+                }
+            },
+            "problemMatcher": [
+                "$gcc"
+            ],
+            "group": {
+                "kind": "build",
+                "isDefault": true
+            }
+        },
+        {
+            "type": "shell",
+            "label": "Run benchmark test",
+            "command": "./benchmark",  // Run the generated executable
+            "options": {
+                "cwd": "${workspaceFolder}/task 3",
+                "shell": {
+                    "executable": "powershell.exe",
+                    "args": ["-Command"]
+                }
+            },
+            "group": "test",
+            "dependsOn": "Build benchmark test"
+        }
+    ]
+}
-- 
GitLab