Skip to content

Commit

Permalink
Disable Instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen committed Jan 13, 2019
1 parent fde00b3 commit 060d412
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "mariadb++/exceptions.hpp"
#include <winsock2.h>
#include "threading.h"
#define INTEL_NO_ITTNOTIFY_API
#include "ittnotify.h"

__itt_domain* domainConnection = __itt_domain_create("connection");
Expand Down
4 changes: 3 additions & 1 deletion src/threading.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#include "threading.h"
#define INTEL_NO_ITTNOTIFY_API
#include "ittnotify.h"
using namespace std::chrono_literals;

#include <iomanip> // put_time
#include <windows.h>
void logMessageWithTime(std::string msg) {
return;
auto now = std::chrono::system_clock::now();
auto in_time_t = std::chrono::system_clock::to_time_t(now);

Expand Down Expand Up @@ -46,7 +48,7 @@ void Worker::run() {
__itt_task_begin(domain, __itt_null, __itt_null, worker_run);
bool rememberUpdateWorklist = false;

auto counter = __itt_counter_create("tasksToDo", "worker");
__itt_counter counter = __itt_counter_create("tasksToDo", "worker");


while (true) {
Expand Down

0 comments on commit 060d412

Please sign in to comment.