{"action":"created","comment":{"url":"https://api.github.com/repos/arangodb/arangodb/pulls/comments/193897558","pull_request_review_id":126967442,"id":193897558,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5Mzg5NzU1OA==","diff_hunk":"@@ -0,0 +1,265 @@\n+////////////////////////////////////////////////////////////////////////////////\n+/// DISCLAIMER\n+///\n+/// Copyright 2017 ArangoDB GmbH, Cologne, Germany\n+///\n+/// Licensed under the Apache License, Version 2.0 (the \"License\");\n+/// you may not use this file except in compliance with the License.\n+/// You may obtain a copy of the License at\n+///\n+///     http://www.apache.org/licenses/LICENSE-2.0\n+///\n+/// Unless required by applicable law or agreed to in writing, software\n+/// distributed under the License is distributed on an \"AS IS\" BASIS,\n+/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+/// See the License for the specific language governing permissions and\n+/// limitations under the License.\n+///\n+/// Copyright holder is ArangoDB GmbH, Cologne, Germany\n+///\n+/// @author Matthew Von-Maszewski\n+////////////////////////////////////////////////////////////////////////////////\n+\n+#ifndef ARANGODB_IMPORT_QUICK_HIST_H\n+#define ARANGODB_IMPORT_QUICK_HIST_H 1\n+\n+#include <chrono>\n+#include <ctime>\n+#include <future>\n+#include <iomanip>\n+#include <mutex>\n+#include <numeric>\n+#include <vector>\n+\n+#include \"Basics/ConditionLocker.h\"\n+#include \"Basics/ConditionVariable.h\"\n+#include \"Basics/Thread.h\"\n+#include \"Logger/Logger.h\"\n+\n+namespace arangodb {\n+namespace import {\n+//\n+// quickly written histogram class for debugging\n+//\n+  class QuickHistogram : public arangodb::Thread {\n+ private:\n+  QuickHistogram(QuickHistogram const&) = delete;\n+  QuickHistogram& operator=(QuickHistogram const&) = delete;\n+\n+ public:\n+  QuickHistogram()\n+    : Thread(\"QuickHistogram\"), _threadRunning(false)\n+  {};","path":"arangosh/Import/quick_hist.h","position":52,"original_position":52,"commit_id":"d4f2fa70fd7732579c5e7f1afaa6361a203291d6","original_commit_id":"d4f2fa70fd7732579c5e7f1afaa6361a203291d6","user":{"login":"matthewvon","id":225681,"node_id":"MDQ6VXNlcjIyNTY4MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/225681?v=4","gravatar_id":"","url":"https://api.github.com/users/matthewvon","html_url":"https://github.com/matthewvon","followers_url":"https://api.github.com/users/matthewvon/followers","following_url":"https://api.github.com/users/matthewvon/following{/other_user}","gists_url":"https://api.github.com/users/matthewvon/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewvon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewvon/subscriptions","organizations_url":"https://api.github.com/users/matthewvon/orgs","repos_url":"https://api.github.com/users/matthewvon/repos","events_url":"https://api.github.com/users/matthewvon/events{/privacy}","received_events_url":"https://api.github.com/users/matthewvon/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2018-06-07T21:41:14Z","updated_at":"2018-06-07T21:41:15Z","html_url":"https://github.com/arangodb/arangodb/pull/5552#discussion_r193897558","pull_request_url":"https://api.github.com/repos/arangodb/arangodb/pulls/5552","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/arangodb/arangodb/pulls/comments/193897558"},"html":{"href":"https://github.com/arangodb/arangodb/pull/5552#discussion_r193897558"},"pull_request":{"href":"https://api.github.com/repos/arangodb/arangodb/pulls/5552"}},"in_reply_to_id":193881211},"pull_request":{"url":"https://api.github.com/repos/arangodb/arangodb/pulls/5552","id":193304709,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMzA0NzA5","html_url":"https://github.com/arangodb/arangodb/pull/5552","diff_url":"https://github.com/arangodb/arangodb/pull/5552.diff","patch_url":"https://github.com/arangodb/arangodb/pull/5552.patch","issue_url":"https://api.github.com/repos/arangodb/arangodb/issues/5552","number":5552,"state":"open","locked":false,"title":"latency histogram option for arangoimport","user":{"login":"matthewvon","id":225681,"node_id":"MDQ6VXNlcjIyNTY4MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/225681?v=4","gravatar_id":"","url":"https://api.github.com/users/matthewvon","html_url":"https://github.com/matthewvon","followers_url":"https://api.github.com/users/matthewvon/followers","following_url":"https://api.github.com/users/matthewvon/following{/other_user}","gists_url":"https://api.github.com/users/matthewvon/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewvon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewvon/subscriptions","organizations_url":"https://api.github.com/users/matthewvon/orgs","repos_url":"https://api.github.com/users/matthewvon/repos","events_url":"https://api.github.com/users/matthewvon/events{/privacy}","received_events_url":"https://api.github.com/users/matthewvon/received_events","type":"User","site_admin":false},"body":"A new option \"--latency true\" will add a histogram output of latency data to arangoimport.  All timing values are in milliseconds.","created_at":"2018-06-07T12:31:12Z","updated_at":"2018-06-07T21:41:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59b6c6db628ff70803fe745b0047903280602900","assignee":null,"assignees":[],"requested_reviewers":[{"login":"kvahed","id":1295696,"node_id":"MDQ6VXNlcjEyOTU2OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1295696?v=4","gravatar_id":"","url":"https://api.github.com/users/kvahed","html_url":"https://github.com/kvahed","followers_url":"https://api.github.com/users/kvahed/followers","following_url":"https://api.github.com/users/kvahed/following{/other_user}","gists_url":"https://api.github.com/users/kvahed/gists{/gist_id}","starred_url":"https://api.github.com/users/kvahed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvahed/subscriptions","organizations_url":"https://api.github.com/users/kvahed/orgs","repos_url":"https://api.github.com/users/kvahed/repos","events_url":"https://api.github.com/users/kvahed/events{/privacy}","received_events_url":"https://api.github.com/users/kvahed/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/arangodb/arangodb/pulls/5552/commits","review_comments_url":"https://api.github.com/repos/arangodb/arangodb/pulls/5552/comments","review_comment_url":"https://api.github.com/repos/arangodb/arangodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arangodb/arangodb/issues/5552/comments","statuses_url":"https://api.github.com/repos/arangodb/arangodb/statuses/d4f2fa70fd7732579c5e7f1afaa6361a203291d6","head":{"label":"arangodb:feature/mv-import-histogram","ref":"feature/mv-import-histogram","sha":"d4f2fa70fd7732579c5e7f1afaa6361a203291d6","user":{"login":"arangodb","id":5547849,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1NDc4NDk=","avatar_url":"https://avatars0.githubusercontent.com/u/5547849?v=4","gravatar_id":"","url":"https://api.github.com/users/arangodb","html_url":"https://github.com/arangodb","followers_url":"https://api.github.com/users/arangodb/followers","following_url":"https://api.github.com/users/arangodb/following{/other_user}","gists_url":"https://api.github.com/users/arangodb/gists{/gist_id}","starred_url":"https://api.github.com/users/arangodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arangodb/subscriptions","organizations_url":"https://api.github.com/users/arangodb/orgs","repos_url":"https://api.github.com/users/arangodb/repos","events_url":"https://api.github.com/users/arangodb/events{/privacy}","received_events_url":"https://api.github.com/users/arangodb/received_events","type":"Organization","site_admin":false},"repo":{"id":2649214,"node_id":"MDEwOlJlcG9zaXRvcnkyNjQ5MjE0","name":"arangodb","full_name":"arangodb/arangodb","owner":{"login":"arangodb","id":5547849,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1NDc4NDk=","avatar_url":"https://avatars0.githubusercontent.com/u/5547849?v=4","gravatar_id":"","url":"https://api.github.com/users/arangodb","html_url":"https://github.com/arangodb","followers_url":"https://api.github.com/users/arangodb/followers","following_url":"https://api.github.com/users/arangodb/following{/other_user}","gists_url":"https://api.github.com/users/arangodb/gists{/gist_id}","starred_url":"https://api.github.com/users/arangodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arangodb/subscriptions","organizations_url":"https://api.github.com/users/arangodb/orgs","repos_url":"https://api.github.com/users/arangodb/repos","events_url":"https://api.github.com/users/arangodb/events{/privacy}","received_events_url":"https://api.github.com/users/arangodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arangodb/arangodb","description":"🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.","fork":false,"url":"https://api.github.com/repos/arangodb/arangodb","forks_url":"https://api.github.com/repos/arangodb/arangodb/forks","keys_url":"https://api.github.com/repos/arangodb/arangodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arangodb/arangodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arangodb/arangodb/teams","hooks_url":"https://api.github.com/repos/arangodb/arangodb/hooks","issue_events_url":"https://api.github.com/repos/arangodb/arangodb/issues/events{/number}","events_url":"https://api.github.com/repos/arangodb/arangodb/events","assignees_url":"https://api.github.com/repos/arangodb/arangodb/assignees{/user}","branches_url":"https://api.github.com/repos/arangodb/arangodb/branches{/branch}","tags_url":"https://api.github.com/repos/arangodb/arangodb/tags","blobs_url":"https://api.github.com/repos/arangodb/arangodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arangodb/arangodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arangodb/arangodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/arangodb/arangodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arangodb/arangodb/statuses/{sha}","languages_url":"https://api.github.com/repos/arangodb/arangodb/languages","stargazers_url":"https://api.github.com/repos/arangodb/arangodb/stargazers","contributors_url":"https://api.github.com/repos/arangodb/arangodb/contributors","subscribers_url":"https://api.github.com/repos/arangodb/arangodb/subscribers","subscription_url":"https://api.github.com/repos/arangodb/arangodb/subscription","commits_url":"https://api.github.com/repos/arangodb/arangodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/arangodb/arangodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/arangodb/arangodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/arangodb/arangodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/arangodb/arangodb/contents/{+path}","compare_url":"https://api.github.com/repos/arangodb/arangodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arangodb/arangodb/merges","archive_url":"https://api.github.com/repos/arangodb/arangodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arangodb/arangodb/downloads","issues_url":"https://api.github.com/repos/arangodb/arangodb/issues{/number}","pulls_url":"https://api.github.com/repos/arangodb/arangodb/pulls{/number}","milestones_url":"https://api.github.com/repos/arangodb/arangodb/milestones{/number}","notifications_url":"https://api.github.com/repos/arangodb/arangodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arangodb/arangodb/labels{/name}","releases_url":"https://api.github.com/repos/arangodb/arangodb/releases{/id}","deployments_url":"https://api.github.com/repos/arangodb/arangodb/deployments","created_at":"2011-10-26T06:42:00Z","updated_at":"2018-06-07T19:28:36Z","pushed_at":"2018-06-07T19:26:44Z","git_url":"git://github.com/arangodb/arangodb.git","ssh_url":"git@github.com:arangodb/arangodb.git","clone_url":"https://github.com/arangodb/arangodb.git","svn_url":"https://github.com/arangodb/arangodb","homepage":"https://www.arangodb.com","size":798357,"stargazers_count":5753,"watchers_count":5753,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":430,"mirror_url":null,"archived":false,"open_issues_count":420,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":430,"open_issues":420,"watchers":5753,"default_branch":"devel"}},"base":{"label":"arangodb:devel","ref":"devel","sha":"de04250fbb65ac5c225c3519e0c73d9af22cc51d","user":{"login":"arangodb","id":5547849,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1NDc4NDk=","avatar_url":"https://avatars0.githubusercontent.com/u/5547849?v=4","gravatar_id":"","url":"https://api.github.com/users/arangodb","html_url":"https://github.com/arangodb","followers_url":"https://api.github.com/users/arangodb/followers","following_url":"https://api.github.com/users/arangodb/following{/other_user}","gists_url":"https://api.github.com/users/arangodb/gists{/gist_id}","starred_url":"https://api.github.com/users/arangodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arangodb/subscriptions","organizations_url":"https://api.github.com/users/arangodb/orgs","repos_url":"https://api.github.com/users/arangodb/repos","events_url":"https://api.github.com/users/arangodb/events{/privacy}","received_events_url":"https://api.github.com/users/arangodb/received_events","type":"Organization","site_admin":false},"repo":{"id":2649214,"node_id":"MDEwOlJlcG9zaXRvcnkyNjQ5MjE0","name":"arangodb","full_name":"arangodb/arangodb","owner":{"login":"arangodb","id":5547849,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1NDc4NDk=","avatar_url":"https://avatars0.githubusercontent.com/u/5547849?v=4","gravatar_id":"","url":"https://api.github.com/users/arangodb","html_url":"https://github.com/arangodb","followers_url":"https://api.github.com/users/arangodb/followers","following_url":"https://api.github.com/users/arangodb/following{/other_user}","gists_url":"https://api.github.com/users/arangodb/gists{/gist_id}","starred_url":"https://api.github.com/users/arangodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arangodb/subscriptions","organizations_url":"https://api.github.com/users/arangodb/orgs","repos_url":"https://api.github.com/users/arangodb/repos","events_url":"https://api.github.com/users/arangodb/events{/privacy}","received_events_url":"https://api.github.com/users/arangodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arangodb/arangodb","description":"🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.","fork":false,"url":"https://api.github.com/repos/arangodb/arangodb","forks_url":"https://api.github.com/repos/arangodb/arangodb/forks","keys_url":"https://api.github.com/repos/arangodb/arangodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arangodb/arangodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arangodb/arangodb/teams","hooks_url":"https://api.github.com/repos/arangodb/arangodb/hooks","issue_events_url":"https://api.github.com/repos/arangodb/arangodb/issues/events{/number}","events_url":"https://api.github.com/repos/arangodb/arangodb/events","assignees_url":"https://api.github.com/repos/arangodb/arangodb/assignees{/user}","branches_url":"https://api.github.com/repos/arangodb/arangodb/branches{/branch}","tags_url":"https://api.github.com/repos/arangodb/arangodb/tags","blobs_url":"https://api.github.com/repos/arangodb/arangodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arangodb/arangodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arangodb/arangodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/arangodb/arangodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arangodb/arangodb/statuses/{sha}","languages_url":"https://api.github.com/repos/arangodb/arangodb/languages","stargazers_url":"https://api.github.com/repos/arangodb/arangodb/stargazers","contributors_url":"https://api.github.com/repos/arangodb/arangodb/contributors","subscribers_url":"https://api.github.com/repos/arangodb/arangodb/subscribers","subscription_url":"https://api.github.com/repos/arangodb/arangodb/subscription","commits_url":"https://api.github.com/repos/arangodb/arangodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/arangodb/arangodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/arangodb/arangodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/arangodb/arangodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/arangodb/arangodb/contents/{+path}","compare_url":"https://api.github.com/repos/arangodb/arangodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arangodb/arangodb/merges","archive_url":"https://api.github.com/repos/arangodb/arangodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arangodb/arangodb/downloads","issues_url":"https://api.github.com/repos/arangodb/arangodb/issues{/number}","pulls_url":"https://api.github.com/repos/arangodb/arangodb/pulls{/number}","milestones_url":"https://api.github.com/repos/arangodb/arangodb/milestones{/number}","notifications_url":"https://api.github.com/repos/arangodb/arangodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arangodb/arangodb/labels{/name}","releases_url":"https://api.github.com/repos/arangodb/arangodb/releases{/id}","deployments_url":"https://api.github.com/repos/arangodb/arangodb/deployments","created_at":"2011-10-26T06:42:00Z","updated_at":"2018-06-07T19:28:36Z","pushed_at":"2018-06-07T19:26:44Z","git_url":"git://github.com/arangodb/arangodb.git","ssh_url":"git@github.com:arangodb/arangodb.git","clone_url":"https://github.com/arangodb/arangodb.git","svn_url":"https://github.com/arangodb/arangodb","homepage":"https://www.arangodb.com","size":798357,"stargazers_count":5753,"watchers_count":5753,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":430,"mirror_url":null,"archived":false,"open_issues_count":420,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":430,"open_issues":420,"watchers":5753,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/arangodb/arangodb/pulls/5552"},"html":{"href":"https://github.com/arangodb/arangodb/pull/5552"},"issue":{"href":"https://api.github.com/repos/arangodb/arangodb/issues/5552"},"comments":{"href":"https://api.github.com/repos/arangodb/arangodb/issues/5552/comments"},"review_comments":{"href":"https://api.github.com/repos/arangodb/arangodb/pulls/5552/comments"},"review_comment":{"href":"https://api.github.com/repos/arangodb/arangodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arangodb/arangodb/pulls/5552/commits"},"statuses":{"href":"https://api.github.com/repos/arangodb/arangodb/statuses/d4f2fa70fd7732579c5e7f1afaa6361a203291d6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"matthewvon"}}