From commits-return-9044-archive-asf-public=cust-asf.ponee.io@kudu.apache.org Fri Aug 7 01:32:19 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id B49F1180675 for ; Fri, 7 Aug 2020 03:32:18 +0200 (CEST) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id E3DB1126ADE for ; Fri, 7 Aug 2020 01:32:17 +0000 (UTC) Received: (qmail 87929 invoked by uid 500); 7 Aug 2020 01:32:17 -0000 Mailing-List: contact commits-help@kudu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kudu.apache.org Delivered-To: mailing list commits@kudu.apache.org Received: (qmail 87863 invoked by uid 99); 7 Aug 2020 01:32:17 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2020 01:32:17 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 15FE38242E; Fri, 7 Aug 2020 01:32:16 +0000 (UTC) Date: Fri, 07 Aug 2020 01:32:18 +0000 To: "commits@kudu.apache.org" Subject: [kudu] 02/03: [scripts] alternative y-label in jobs_runtime.R MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: alexey@apache.org In-Reply-To: <159676393668.32300.12940523616634666454@gitbox.apache.org> References: <159676393668.32300.12940523616634666454@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: kudu X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: f3c7b3f866d3f1f6505264e27b035e8d2798c2d1 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20200807013217.15FE38242E@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. alexey pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/kudu.git commit f3c7b3f866d3f1f6505264e27b035e8d2798c2d1 Author: Alexey Serbin AuthorDate: Tue Aug 4 19:06:44 2020 -0700 [scripts] alternative y-label in jobs_runtime.R Added alternative y-label for graphs generated by jobs_runtime.R. I'm planning to use this in a follow-up changelist. Change-Id: I8f53c39348a61b8d54f22cfd9adaac20006f898a Reviewed-on: http://gerrit.cloudera.org:8080/16289 Tested-by: Kudu Jenkins Reviewed-by: Andrew Wong --- src/kudu/scripts/jobs_runtime.R | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/kudu/scripts/jobs_runtime.R b/src/kudu/scripts/jobs_runtime.R index e6dc97e..365d1d2 100644 --- a/src/kudu/scripts/jobs_runtime.R +++ b/src/kudu/scripts/jobs_runtime.R @@ -32,17 +32,25 @@ newpng <- function(filename = "img.png", width = 1500, height = 500) { } args <- commandArgs(trailingOnly = TRUE) -if (length(args) < 2) { - stop("usage: jobs_runtime.R ") +if (length(args) < 2 || length(args) > 3) { + stop("usage: jobs_runtime.R [y-axis-label]") } filename = args[1] testname = args[2] +ylabel="runtime" +if (length(args) == 3) { + ylabel=args[3] +} newpng(paste(testname, "-jobs-runtime.png", sep = "")) d <- read.table(file=filename, header=T) print(ggplot(d, aes(x = build_number, y = runtime, color = workload)) + + ylab(ylabel) + stat_summary(aes(group = workload), fun.y=median, geom = "line") + - geom_boxplot(aes(group = interaction(workload, build_number)), position = "identity", outlier.size = 1.7, outlier.colour = "gray32") + + geom_boxplot(aes(group = interaction(workload, build_number)), + position = "identity", + outlier.size = 1.7, + outlier.colour = "gray32") + ggtitle(testname))