diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..3ca938b --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,27 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "(gdb) Launch", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/bin/resource-monitor", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": true, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b4d9aa0 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,38 @@ +{ + "files.associations": { + "iostream": "cpp", + "thread": "cpp", + "cctype": "cpp", + "clocale": "cpp", + "cstddef": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "ctime": "cpp", + "cwchar": "cpp", + "cwctype": "cpp", + "array": "cpp", + "atomic": "cpp", + "*.tcc": "cpp", + "chrono": "cpp", + "cmath": "cpp", + "cstdint": "cpp", + "exception": "cpp", + "fstream": "cpp", + "initializer_list": "cpp", + "iosfwd": "cpp", + "istream": "cpp", + "limits": "cpp", + "memory": "cpp", + "new": "cpp", + "ostream": "cpp", + "ratio": "cpp", + "stdexcept": "cpp", + "streambuf": "cpp", + "string_view": "cpp", + "system_error": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "typeinfo": "cpp", + "utility": "cpp" + } +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 6c28385..619a0be 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -4,9 +4,29 @@ "version": "2.0.0", "tasks": [ { - "label": "echo", + "label": "Cmake and build", "type": "shell", - "command": "echo Hello" + "command": "cmake .; make" + }, + { + "label": "build", + "type": "shell", + "command": "make" + }, + { + "label": "build and run", + "type": "shell", + "command": "make; cd bin; ./resource-monitor; cd .." + }, + { + "label": "Cmake, build and run", + "type": "shell", + "command": "cmake .; make; cd bin; ./resource-monitor; cd .." + }, + { + "label": "run", + "type": "shell", + "command": "cd bin; ./resource-monitor; cd .." } ] } \ No newline at end of file