Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ECCAE200D2F for ; Wed, 1 Nov 2017 21:17:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EB3A4160BEA; Wed, 1 Nov 2017 20:17:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3D6031609EC for ; Wed, 1 Nov 2017 21:17:48 +0100 (CET) Received: (qmail 76862 invoked by uid 500); 1 Nov 2017 20:17:47 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 76836 invoked by uid 99); 1 Nov 2017 20:17:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Nov 2017 20:17:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 69E5418073A for ; Wed, 1 Nov 2017 20:17:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.362 X-Spam-Level: ** X-Spam-Status: No, score=2.362 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id NU_5aj2zqPad for ; Wed, 1 Nov 2017 20:17:45 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 9C3AB60F60 for ; Wed, 1 Nov 2017 20:17:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id vA1KHfb8021670; Wed, 1 Nov 2017 20:17:41 GMT Message-Id: <201711012017.vA1KHfb8021670@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 4 Date: Wed, 1 Nov 2017 20:17:40 +0000 From: "Dan Hecht (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5142_EventSequence_displays_negative_elapsed_time=2E=0A?= X-Gerrit-Change-Id: I8c944396d96473b17b453da3e913ffc56680a896 X-Gerrit-Change-Number: 8215 X-Gerrit-ChangeURL: X-Gerrit-Commit: 3ccbabf73a3b98cac1819656297e7909b209283f In-Reply-To: References: X-Gerrit-Comment-Date: Wed, 1 Nov 2017 20:17:40 +0000 Reply-To: dhecht@cloudera.com, impala-cr@cloudera.com, marcelk@gmail.com, reviews@impala.incubator.apache.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="8XfEl6NmRPs="; charset=UTF-8 archived-at: Wed, 01 Nov 2017 20:17:49 -0000 --8XfEl6NmRPs= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dan Hecht has posted comments on this change=2E ( http://gerrit=2Ecloudera= =2Eorg:8080/8215 ) Change subject: IMPALA-5142 EventSequence displays nega= tive elapsed time=2E =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E Patch Set 4: (2 comments) http://gerrit=2Ecloudera=2Eorg:8080/#/= c/8215/4/be/src/util/runtime-profile-counters=2Eh File be/src/util/runtime-= profile-counters=2Eh: http://gerrit=2Ecloudera=2Eorg:8080/#/c/8215/4/be/sr= c/util/runtime-profile-counters=2Eh@326 PS4, Line 326: bool eventlist_s= orted =3D true; : int64_t prev =3D 0L; : = for (const Event& event: events_) { : if (event=2Esecond= < prev) { : eventlist_sorted =3D false; = : break; : } : prev =3D event= =2Esecond; : } : why bother with this? the = list is pretty short and this isn't a critical path, so I think it should b= e fine to always call sort()=2E (and if you were to do that, you might as w= ell use std::is_sorted()) http://gerrit=2Ecloudera=2Eorg:8080/#/c/8215/4/= be/src/util/runtime-profile-counters=2Eh@336 PS4, Line 336: [](Event const = &event1, nit: how about breaking the line before the [] instead of in the m= iddle of the lambda param list? -- To view, visit http://gerrit=2Ecloud= era=2Eorg:8080/8215 To unsubscribe, visit http://gerrit=2Ecloudera=2Eorg:80= 80/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Messag= eType: comment Gerrit-Change-Id: I8c944396d96473b17b453da3e913ffc56680a896 = Gerrit-Change-Number: 8215 Gerrit-PatchSet: 4 Gerrit-Owner: Pranay Singh Ge= rrit-Reviewer: Dan Hecht Gerrit-Reviewer: Pranay Si= ngh Gerrit-Comment-Date: Wed, 01 Nov 2017 20:17:40 +0000 Gerrit-HasComments= : Yes --8XfEl6NmRPs=--