Zsh Mailing List Archive
Messages sorted by:
Re: profile prompt rendering time
- X-seq: zsh-users 21770
- From: Filipe Silva <filipe.silva@xxxxxxxxx>
- To: Richo Healey <richo@xxxxxxxxxxxxx>
- Subject: Re: profile prompt rendering time
- Date: Wed, 13 Jul 2016 19:37:08 -0300
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9KyS51IdUwALbITttgcwMlIXbC909mOFb4L7nBcoXbo=; b=gKtvqEXfMx+/70V/W+s7+TZmCJib2lCdSkMVwFyn2SByvnArO+8/PF3KDQ0YdfJi9U g9OspHjLe1X0ab8a7cyT0FHlAk7Je/c8C6LyM4l5/Quo7c00qVgF1mF6nCZOaYyzBgwL Ih1e107tMtTD9D/4t+nqYTns89ZC5w5u7Sp6EFMb49kKxmnks2qlRxRNiAK90e5Z/0Mi C0bFCGok2bYissh8HaLFgCuiEoBAka2T57Cuh8pErGQCYwzS0ARqcZh5KL/NkD7YfUq7 TJQCcHVlzYZl4u7I7tMGfdZe2+hratPUQxgk/VvbB9l83zMYqNpvMS2yIrKbd+06zNjX RmMQ==
- In-reply-to: <20160713213713.GB75349@xenia>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAEwkUWO7yrxptZChw7Q3F=u=0+Uwf+Frmzo24py3xvrK1=cTtA@mail.gmail.com> <20160713213713.GB75349@xenia>
Yes! that'd be neat Richo. I was thinking of doing that to the right
Thanks Bart. I'll try to work that on a custom prompt.
On Wed, Jul 13, 2016 at 6:37 PM, Richo Healey <richo@xxxxxxxxxxxxx> wrote:
> On 13/07/16 11:17 -0300, Filipe Silva wrote:
>> 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
> You could do something fairly janky and just wrap your whole prompt in a
> function that emits the prompt, and time(1)'s itself.
Messages sorted by: