From patchwork Wed Oct 2 23:49:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josh Steadmon X-Patchwork-Id: 11171913 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7225214DB for ; Wed, 2 Oct 2019 23:49:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4DA2821A4C for ; Wed, 2 Oct 2019 23:49:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="bCP29OBZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727659AbfJBXtd (ORCPT ); Wed, 2 Oct 2019 19:49:33 -0400 Received: from mail-pg1-f201.google.com ([209.85.215.201]:56872 "EHLO mail-pg1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727327AbfJBXtc (ORCPT ); Wed, 2 Oct 2019 19:49:32 -0400 Received: by mail-pg1-f201.google.com with SMTP id u4so632731pgp.23 for ; Wed, 02 Oct 2019 16:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to; bh=2iP60HDYfuzrb/NxgpZH3Rqc2oIV+tXyN5JAWDhlOhk=; b=bCP29OBZZH3ZGDNxiME2AMBjeEnKaY2vlCLf1xt1CKpLzbEkKbkLCMVy9d4yWEmnlE 9Kt1qgzaczge/ItURMMISrsf6ft0WDWNYso0nrVPoHBszMWOxQ+9H2yAsfrH0wM8Vr1Q CDlYtyG/Ve43RUwYpx0U/yMso4ynOpK842NDzKIexE/lOBmUUqIuI5DIgRHWhH7fgqpS JIGSOnQHUcSv+DKn99DYWtdU+Aot9PZtRx5L7pF6T0R3zPl41XFh9hw7HAni9LfRlVt+ xxNJygG71Y0BGECdkCWaZGzy0u8WesU0Dyx1GbCum5ZO3+A9IXY0f6rSYzQwIpoujJFC Ys3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to; bh=2iP60HDYfuzrb/NxgpZH3Rqc2oIV+tXyN5JAWDhlOhk=; b=FM9wYCmTSPetQDtV3vbcwyCC3yJbGA6hdYXJ3Ysk9v4NLO+VtQDEj49Y1OnS7btRmy F+Fau26Q5XiUVmOHofRCTb/meiCSfJmh/h565bgFaO/YfZcq6LPMd34c2cghbrO89/Pb x4WgUUSqXVJsraRHggU1DlISyATR+EBy0kGK68M06XTPsKL73OawqabvyVi3X2qdjtdY V/OeSXR+VIV3sDsgOGdKHpbbBLJWE6+BHeK9cuvhMZa2+szfUm7fuX03kJ7b2OfXH/25 y07F1TTOYvbf58AbuMRbPTocEH0MwMAA01OhHYW1rvDWO4oI1zlbWU31CUHZmMYmti+B b6Tg== X-Gm-Message-State: APjAAAXVvfihiDeA9NwYMZxaxy5VzhREYpLeVjPUxd0h4+qnoLilo3XU WFJc6xcT3y0jQgvCT2vPMqyGD2R0gQIh3/BOxDceeD8RfuK7p/kzyWzTgk4SxAmBMjdrmvGWyiX bXA6xxzGV7L3t5ch6j7P1R/uksiKZgi7vii0OHDkgU1aobM0NR7a4ZlD0p6bMjoY= X-Google-Smtp-Source: APXvYqwh7nshsvqkg0b/XBXi59u4r8UFfCp47yx/lMdVbkqLt+x5VudKvJtAeZ6n68J4OiZoTF3vsLV3O6/dig== X-Received: by 2002:a63:4924:: with SMTP id w36mr6536753pga.113.1570060171662; Wed, 02 Oct 2019 16:49:31 -0700 (PDT) Date: Wed, 2 Oct 2019 16:49:27 -0700 Message-Id: Mime-Version: 1.0 X-Mailer: git-send-email 2.23.0.444.g18eeb5a265-goog Subject: [PATCH 0/2] add trace2 regions to fetch & push From: Josh Steadmon To: git@vger.kernel.org Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org We'd like to collect better statistics about where the time is spent in fetches and pushes so that we can hopefully identify some areas for future optimization. So let's add some trace2 regions around some of the fetch/push phases so we can break down their timing. Josh Steadmon (2): fetch: add trace2 instrumentation push: add trace2 instrumentation builtin/fetch.c | 22 +++++++++++++++------- builtin/push.c | 2 ++ fetch-pack.c | 13 ++++++++++++- transport.c | 14 ++++++++++++-- 4 files changed, 41 insertions(+), 10 deletions(-) Signed-off-by: Josh Steadmon Signed-off-by: Junio C Hamano