From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751562AbbJJHem (ORCPT ); Sat, 10 Oct 2015 03:34:42 -0400 Received: from mail-ig0-f172.google.com ([209.85.213.172]:33498 "EHLO mail-ig0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751230AbbJJHel (ORCPT ); Sat, 10 Oct 2015 03:34:41 -0400 MIME-Version: 1.0 In-Reply-To: <20151010070906.GA1336@gmail.com> References: <1444079018-31421-1-git-send-email-acme@kernel.org> <1444079018-31421-14-git-send-email-acme@kernel.org> <20151009215626.GM14409@kernel.org> <20151010070906.GA1336@gmail.com> From: Brendan Gregg Date: Sat, 10 Oct 2015 00:34:21 -0700 Message-ID: Subject: Re: [PATCH 13/16] perf callchain: Switch default to 'graph,0.5,caller' To: Ingo Molnar Cc: Arnaldo Carvalho de Melo , LKML , Adrian Hunter , Borislav Petkov , Chandler Carruth , David Ahern , Frederic Weisbecker , Jiri Olsa , Namhyung Kim , Stephane Eranian , Wang Nan Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 10, 2015 at 12:09 AM, Ingo Molnar wrote: > > * Brendan Gregg wrote: > >> On Fri, Oct 9, 2015 at 2:56 PM, Arnaldo Carvalho de Melo >> wrote: >> > >> > Em Fri, Oct 09, 2015 at 01:34:33PM -0700, Brendan Gregg escreveu: >> > > On Mon, Oct 5, 2015 at 2:03 PM, Arnaldo Carvalho de Melo >> > > wrote: >> > > > >> > > > From: Arnaldo Carvalho de Melo >> > > > >> > > > Which is the most common default found in other similar tools. >> > > >> > > Interactive tools, sure, like the perf report TUI. >> > >> > > But this also changes the ordering of the non-interactive tools which >> > > dump stacks: "perf report -n --stdio" and "perf script". The most >> > > common default for dumping stacks is caller. Eg: >> > >> > And you use that for scripting? >> >> Yes; how I typically CPU profile: >> >> git clone https://github.com/brendangregg/FlameGraph >> cd FlameGraph >> perf record -F 99 -a -g -- sleep 60 >> perf script | ./stackcollapse-perf.pl | /flamegraph.pl > flame.svg >> >> Then open flame.svg in a browser and click around. Try it. :) > > So I tried it: > > triton:~/s/FlameGraph> ls -l flame.svg > -rw-rw-r-- 1 mingo mingo 1022870 Oct 10 09:06 flame.svg > > but when I tried to view it via ImageMagick, it first showed an empty screen: > > triton:~/s/FlameGraph> display flame.svg > > then when exiting it said: > > display: non-conforming drawing primitive definition `text-anchor' @ error/draw.c/DrawImage/3182. > > although I guess that latter is an unrealted ImageMagick problem, not caused by > the SVG. > Sorry, I should have said to open it in a browser (Chrome/Firefox); the SVG contains some (entirely embedded) JavaScript to provide interactivity (click to zoom, Ctrl-F to search). I think it used to work in ImageMagick (without JavaScript interactivity), but I haven't tried in a long time. I'll have to check it again. Brendan