Re: [DynInst_API:] Dyninst is taking 35 seconds to attach to Firefox


Date: Mon, 7 Jul 2014 18:11:12 -0400
From: Francis Deslauriers <francis.deslauriers@xxxxxxxxxxxx>
Subject: Re: [DynInst_API:] Dyninst is taking 35 seconds to attach to Firefox
On Mon, Jul 7, 2014 at 6:06 PM, Bill Williams <bill@xxxxxxxxxxx> wrote:
> On 07/07/2014 04:44 PM, Francis Deslauriers wrote:
>>
>> Hi folks,
>>
>> I tried to attach a Firefox process and it took Dyninst ~35 seconds.
>> My mutator program forks and the child process exec firefox with the
>> -h argument.
>>
>> Here is a pastebin where I used the time command and
>> DYNINST_DEBUG_STARTUP=1 :
>> http://pastebin.com/Tx5NhqpR
>>
>> Here is the code i used: http://pastebin.com/rVikLb6m
>> Makefile : http://pastebin.com/3rvgFUWi
>>
>> Am i using Dyninst the wrong way? Is there something I can do to speed
>> up the attaching? Maybe Firefox debug symbols are just too huge.
>>
> Firefox does have a large number of shared libraries with a large quantity
> of debug information, if memory serves, and your mutator looks fine. We will
> not attach *quickly* but 35 seconds seems rather extreme.
>
> Are you working with the pre-8.2 tree? Did you configure Dyninst with
> RelWithDebInfo or Release mode? That sounds a lot like an unoptimized
> Dyninst build to me.

Hi,

I am working with the 8.2 branch and with this cmake directive : cmake
-DCMAKE_BUILD_TYPE=Release

What is the RelWithDebInfo mode?

Thank you!
Francis

>
>> Thank you,
>>
>> Francis
>> _______________________________________________
>> Dyninst-api mailing list
>> Dyninst-api@xxxxxxxxxxx
>> https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
>>
>
>
> --
> --bw
>
> Bill Williams
> Paradyn Project
> bill@xxxxxxxxxxx
[← Prev in Thread] Current Thread [Next in Thread→]