From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12504 invoked by alias); 13 Jul 2016 14:17:32 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21761 Received: (qmail 21540 invoked from network); 13 Jul 2016 14:17:32 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi0-f47.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.218.47):SA:0(0.0/5.0):. Processed in 0.147927 secs); 13 Jul 2016 14:17:32 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE, SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: filipe.silva@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.218.47 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=9ZaxZ5Ak5RnGwouJpZm4r92RuohxIN0u6IzTBheEpnQ=; b=DDlJlTzkwXds6KF/3ZbvmYd3lZIpSZgskvCWok4Ra5Ap0XaCbiogF6LziSdzvPY3VJ sEobjBoFgAWtHO12h8CutAWHvFFFBZEkvunzo19diWrqFAgcQK25nuCkHfyGwGMZ96Rt dG2wolZkYPKBnvhdeSuO3ICyl0Sfucz4azyVcW5sItUQP/RUAm+0KnboF6O+DtlfEVko rSiPKxZxaoOCuA51d4yhsiZyv/5b/4YqgeNWgbW0pKaLV9Orq2FJBAiFPEte/v3yDPSy ai+2ccgcfUmVUellfoGvWmgu+OFXkELOHjrlN/I9MiB7/POVX3SASnEcvBPrv16AuH3P eUlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9ZaxZ5Ak5RnGwouJpZm4r92RuohxIN0u6IzTBheEpnQ=; b=G8ZfgjBOkNqdgIujSkzXWQ3yIJ/9bhlkW7ZF64tG40gMzL+XfyZpQp3dBqClMsSC9a GRoGr5i7riIp36c36+6IYiYNVIqzSeUsP2yiJX801/9ZJV6zdDbqLa0QXtrwuA0z2sjv LqVhDqol978r6P3SgGcHH5AjjXQZNTmS9iWI7rWpGv5JE9exqPhyWOkbdpRKH6xvSOMQ meq3Jz9oX1wnHRZIXLUqCcNZADoNO1ntElp2WfUwknE9byRJ5Td+4ng5LMHzp++QM/x7 r6ab7a6mL0nkm/QVfQ9rj2Y/N31CabQRRgmzroi/0dfCyX/8J5+/QDIqqXkBoxKix3tP oEzw== X-Gm-Message-State: ALyK8tLVUGGTJXPmdzAUy+zIR8x77XILpLz0WDcJmVpx0Rf36t9BxZMNsr+AyxPRNskyjarcIMbjAFI+gZz/pA== X-Received: by 10.157.48.49 with SMTP id d46mr211449otc.91.1468419444019; Wed, 13 Jul 2016 07:17:24 -0700 (PDT) MIME-Version: 1.0 From: Filipe Silva Date: Wed, 13 Jul 2016 11:17:23 -0300 Message-ID: Subject: profile prompt rendering time To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=001a113e2400579ced0537850b47 --001a113e2400579ced0537850b47 Content-Type: text/plain; charset=UTF-8 Hi, short version: How can I profile each rendering of a zsh prompt? long version: I've recently came across a plugin (rupa/z) that, when installed, hit my zsh prompt rendering time by a noticeable amount. When I say prompt rendering time, I'm not refering to amount of time that it takes for the first zsh prompt to appear when I issue, for an example, `exec zsh` (that is achieve by issuing `time zsh -i -c "print -n"`). I'm talking about the time that it takes for zsh to give me another prompt once that it is fully loaded. In other words, I want to achieve this: ~ $ ls (when i hit enter, start counting) code/ notes/ file.txt ~ $ (stop counting when this prompt appears. show me elapsed time) Is that a way to do that? thanks in advance, Filipe Silva --001a113e2400579ced0537850b47--