Commit f8baf298 by Amir Aharon

first compilation and debug Client_Test

parent f1304e87
...@@ -29,36 +29,33 @@ ...@@ -29,36 +29,33 @@
{ {
"name": "Linux", "name": "Linux",
"includePath": [ "includePath": [
"/usr/include/c++/7.4.0", "/usr/include/c++/7.5.0",
"/usr/include/x86_64-linux-gnu/c++/7.4.0", "/usr/include/x86_64-linux-gnu/c++/7.5.0",
"/usr/include/c++/7.4.0/backward", "/usr/include/c++/7.5.0/backward",
"/usr/lib/gcc/x86_64-linux-gnu/7.4.0/include", "/usr/lib/gcc/x86_64-linux-gnu/7.5.0/include",
"/usr/local/include", "/usr/local/include",
"/usr/lib/gcc/x86_64-linux-gnu/7.4.0/include-fixed", "/usr/lib/gcc/x86_64-linux-gnu/7.5.0/include-fixed",
"/usr/include/x86_64-linux-gnu", "/usr/include/x86_64-linux-gnu",
"/usr/include", "/usr/include",
"/home/vscode/vcpkg/installed/x64-linux/include", "/home/vscode/vcpkg/installed/x64-linux/include",
"${workspaceRoot}/../3party", "${workspaceRoot}/3party",
"${workspaceRoot}/src", "${workspaceRoot}/src"
"/usr/include/c++/7.4.0",
"/usr/include/x86_64-linux-gnu/c++/7.4.0"
], ],
"compileCommands": "./compile_commands.json", "compileCommands": "./compile_commands.json",
"defines": [], "defines": [],
"intelliSenseMode": "${default}", "intelliSenseMode": "${default}",
"browse": { "browse": {
"path": [ "path": [
"/usr/include/c++/7.4.0", "/usr/include/c++/7.5.0",
"/usr/include/x86_64-linux-gnu/c++/7.4.0", "/usr/include/x86_64-linux-gnu/c++/7.5.0",
"/usr/include/c++/7.4.0/backward", "/usr/include/c++/7.5.0/backward",
"/usr/lib/gcc/x86_64-linux-gnu/7.4.0/include", "/usr/lib/gcc/x86_64-linux-gnu/7.5.0/include",
"/usr/local/include", "/usr/local/include",
"/usr/lib/gcc/x86_64-linux-gnu/7.4.0/include-fixed", "/usr/lib/gcc/x86_64-linux-gnu/7.5.0/include-fixed",
"/usr/include/x86_64-linux-gnu", "/usr/include/x86_64-linux-gnu",
"/usr/include", "/usr/include",
"/home/vscode/vcpkg/installed/x64-linux/include", "/home/vscode/vcpkg/installed/x64-linux/include",
"${workspaceRoot}/src", "${workspaceRoot}/src"
"/usr/include/c++/7.4.0"
], ],
"limitSymbolsToIncludedHeaders": true, "limitSymbolsToIncludedHeaders": true,
"databaseFilename": "" "databaseFilename": ""
......
...@@ -51,13 +51,13 @@ ...@@ -51,13 +51,13 @@
"environment": [] "environment": []
}, },
{ {
"name": "C++ Client Local (GDB)", "name": "C++ Test Client",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
//"preLaunchTask": "start-gdbserver", //"preLaunchTask": "start-gdbserver",
"miDebuggerPath": "/usr/bin/gdb", "miDebuggerPath": "/usr/bin/gdb",
"targetArchitecture": "x64", "targetArchitecture": "x64",
"program": "${workspaceRoot}/build/bin/test_MicroserviceClient", "program": "${workspaceRoot}/build/build/bin/test_MicroserviceClient",
"args": [], "args": [],
"stopAtEntry": false, "stopAtEntry": false,
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
...@@ -67,7 +67,6 @@ ...@@ -67,7 +67,6 @@
"name": "C++ Attach (GDB)", "name": "C++ Attach (GDB)",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
"launchOptionType": "Local",
"miDebuggerPath": "/usr/bin/gdb", "miDebuggerPath": "/usr/bin/gdb",
"targetArchitecture": "x64", "targetArchitecture": "x64",
"program": "enter program name, for example ${workspaceRoot}/a.out", "program": "enter program name, for example ${workspaceRoot}/a.out",
......
...@@ -291,13 +291,13 @@ void testJsons() ...@@ -291,13 +291,13 @@ void testJsons()
std::string outStr; std::string outStr;
archiverJsonLohmann.build(json1,outStr); archiverJsonLohmann.build(json1,outStr);
msrapidjson::Document rpj_Doc; // msrapidjson::Document rpj_Doc;
archiverRapidJson.parse(inStr, (rapidjson::Document)rpj_Doc); // archiverRapidJson.parse(inStr, (rapidjson::Document)rpj_Doc);
archiverRapidJson.build((rapidjson::Document)rpj_Doc,outStr); // archiverRapidJson.build((rapidjson::Document)rpj_Doc,outStr);
std::cout <<" Testing " << ITERATIONS << " with map serialization json took: " << CommonUtils::measureFunc<>(testSerializations) << "msec" << '\n'; std::cout <<" Testing " << ITERATIONS << " with map serialization json took: " << CommonUtils::measureFunc<>(testSerializations) << "msec" << '\n';
std::cout <<" Testing " << ITERATIONS << " with rapid json took: " << CommonUtils::measureFunc<>(testRapidJson) << "msec" << '\n'; // std::cout <<" Testing " << ITERATIONS << " with rapid json took: " << CommonUtils::measureFunc<>(testRapidJson) << "msec" << '\n';
if( false or not true){ if( false or not true){
} }
...@@ -604,13 +604,13 @@ void test_evpp(){ ...@@ -604,13 +604,13 @@ void test_evpp(){
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
//auto duration = CommonUtils::measureFunc<>(runEvppRequestsTest); //auto duration = CommonUtils::measureFunc<>(runEvppRequestsTest);
auto duration = CommonUtils::measureFunc<>(runMSClientEvppTest); // auto duration = CommonUtils::measureFunc<>(runMSClientEvppTest);
// auto duration = CommonUtils::measureFunc<>(test_evpp); // auto duration = CommonUtils::measureFunc<>(test_evpp);
std::cout <<" Testing " << ITERATIONS << " with map serialization json took: " << duration << "msec" << '\n'; // std::cout <<" Testing " << ITERATIONS << " with map serialization json took: " << duration << "msec" << '\n';
//runRestZmqTest(); //runRestZmqTest();
// testCaches(); // testCaches();
// testJsons(); testJsons();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment