Jump to page: 1 2
Thread overview
dmd -profile=gc
May 03, 2015
Walter Bright
May 04, 2015
w0rp
May 04, 2015
Andrea Fontana
May 04, 2015
Walter Bright
May 05, 2015
extrawurst
May 05, 2015
Walter Bright
May 05, 2015
Temtaime
May 05, 2015
Temtaime
May 05, 2015
Vladimir Panteleev
May 05, 2015
extrawurst
May 05, 2015
Paolo Invernizzi
May 05, 2015
Walter Bright
May 06, 2015
extrawurst
May 06, 2015
extrawurst
May 05, 2015
Andrea Fontana
Jun 26, 2015
Yuxuan Shui
Jun 27, 2015
Morbid.Obesity
May 03, 2015
Just merged in is a new compiler switch that instruments generated code to collect statistics on memory allocation usage and generates a report upon program termination. (Much like how -profile works.)

This was based on a prototype Andrei had written earlier.

Andrei and I suspect it can be of great use in figuring out why a program may be excessively slow or consume excessive memory.

I encourage giving it a try on some non-trivial project, and see if it gives useful information.
May 04, 2015
On Sunday, 3 May 2015 at 21:11:58 UTC, Walter Bright wrote:
> Just merged in is a new compiler switch that instruments generated code to collect statistics on memory allocation usage and generates a report upon program termination. (Much like how -profile works.)
>
> This was based on a prototype Andrei had written earlier.
>
> Andrei and I suspect it can be of great use in figuring out why a program may be excessively slow or consume excessive memory.
>
> I encourage giving it a try on some non-trivial project, and see if it gives useful information.

Nice! I bet this can be used to improve Phobos in tandem with @nogc.
May 04, 2015
Can be -profile and -profile=gc mixed together?

On Sunday, 3 May 2015 at 21:11:58 UTC, Walter Bright wrote:
> Just merged in is a new compiler switch that instruments generated code to collect statistics on memory allocation usage and generates a report upon program termination. (Much like how -profile works.)
>
> This was based on a prototype Andrei had written earlier.
>
> Andrei and I suspect it can be of great use in figuring out why a program may be excessively slow or consume excessive memory.
>
> I encourage giving it a try on some non-trivial project, and see if it gives useful information.

May 04, 2015
On 5/4/2015 6:06 AM, Andrea Fontana wrote:
> Can be -profile and -profile=gc mixed together?

Yes, and you'll get two reports.

May 05, 2015
On Monday, 4 May 2015 at 19:24:57 UTC, Walter Bright wrote:
> On 5/4/2015 6:06 AM, Andrea Fontana wrote:
>> Can be -profile and -profile=gc mixed together?
>
> Yes, and you'll get two reports.

Does it work with a multithreaded application (in contrast to -profile) ?
May 05, 2015
On Monday, 4 May 2015 at 19:24:57 UTC, Walter Bright wrote:
> On 5/4/2015 6:06 AM, Andrea Fontana wrote:
>> Can be -profile and -profile=gc mixed together?
>
> Yes, and you'll get two reports.

So I think they should be called -profile and -profile-gc.
Or at least -profile=code -profile=gc (but i guess there's a problem with retro-compatibility)

Andrea
May 05, 2015
On 5/4/2015 10:53 PM, extrawurst wrote:
> Does it work with a multithreaded application (in contrast to -profile) ?

Yes, and -profile was also fixed a week ago to handle multiple threads.
May 05, 2015
I have a problem with regexes inside my project.

5376580784	[] std.regex.internal.kickstart.Kickstart!char.ShiftOr.this dmd\windows\bin\..\..\src\phobos\std\regex\internal\kickstart.d:284

Calling of regex's crot with any argument causes that.
Problem only exists if my project is compiled without -debug flag.
If i try dustmite it then problem dissapears.

I don't know how i can help to developers but maybe one could investigate.

As a workaround i'm using ctRegex.
May 05, 2015
*ctor

*and then appication terminates with OOM exeption
May 05, 2015
On Tuesday, 5 May 2015 at 09:30:55 UTC, Walter Bright wrote:
> On 5/4/2015 10:53 PM, extrawurst wrote:
>> Does it work with a multithreaded application (in contrast to -profile) ?
>
> Yes, and -profile was also fixed a week ago to handle multiple threads.

Awesome! Looking forward for the next release!!
« First   ‹ Prev
1 2