help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re : [Help-smalltalk] µTrying to compile gst fo r profiling


From: Eli Green
Subject: Re: Re : [Help-smalltalk] µTrying to compile gst fo r profiling
Date: Thu, 3 Jun 2010 21:16:25 +0200

"Instruments" is even easier to use than Shark (and Shark will not
work if you're running the 64-bit kernel). It's Apple's GUI to DTrace.
It does not instrument the code, using sampling instead, so it may not
be quite as accurate but over long runs should still produce useful
results. It can also profile memory leaks, file access, network
access, etc.

On Thu, Jun 3, 2010 at 17:31, Mathieu Suen <address@hidden> wrote:
>
> Thanks Paolo.
>
> For now on I have only access to an ubuntu machine.
> I will try with Shark back home.
>
> With kcachegrind at a first glance I got a total of self cost
>
> ~2 for comp.c, gst-parse.c, lex.c
> ~26 for interp.c, interp_bc.inl,
>
> Not sure what is the unit but a time unit for sure.
> I also have many other file but it is not sure whether to include them in the 
> compiler or the interpreter.
> (alloc.c, callin.c, dict.c(~4 time unit), input.c(~3 time unit), oop.c(~20 
> time unit), prims.def (~18 time unit)...)
>
> I also got some <cycle 3> which take ~28 time unit.
> I don't know to what it correspond.
>
>
>
>
> ----- Message d'origine ----
> De : Paolo Bonzini <address@hidden>
> À : Mathieu Suen <address@hidden>
> Cc : address@hidden
> Envoyé le : Jeu 3 juin 2010, 14h 12min 57s
> Objet : Re: [Help-smalltalk] µTrying to compile gst for profiling
>
> On 06/03/2010 10:54 AM, Mathieu Suen wrote:
>> Hi,
>>
>>
>> I try to build a gst with profiling information.
>> So I configure gst with:
>>
>> ./configure CFLAGS=-pg
>>
>> and make give me thix error:
>>
>> gcc: -pg and -fomit-frame-pointer are incompatible
>>
>>
>> I guess I should remove the oprion -fomit-frame-pointer but
>> I don't know the right way of doing it.
>> Is there a way to compile gst with profiling information?
>
> Try this:
>
> diff --git a/configure.ac b/configure.ac
> index b9f4b43..fc2ce06 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -264,8 +264,9 @@
>       AC_MSG_ERROR([GNU Smalltalk requires GCC 3.3 or later.]) ;;
>  esac
>
> -case $host_cpu in
> -   i*86) LIBGST_CFLAGS='-fomit-frame-pointer' ;;
> +case '$host_cpu: $CFLAGS ' in
> +   i*86:*' -pg '*) ;;
> +   i*86:*) LIBGST_CFLAGS='-fomit-frame-pointer' ;;
>     *) ;;
>  esac
>  AC_SUBST(LIBGST_CFLAGS)
>
>
> If you're on the Mac, however, I would use Shark.  Much simpler and much
> more powerful.
>
> Paolo
>
>
>
>
>
> _______________________________________________
> help-smalltalk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-smalltalk
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]