Giter Club home page Giter Club logo

Comments (8)

thewilsonator avatar thewilsonator commented on July 4, 2024

That time trace comes from https://github.com/ldc-developers/ldc/blob/master/driver/toobj.cpp#L385 I'm not sure what any more granularity you would reasonably get more information from, assuming that you are just writing object files xor LLVM bitcode.

Have you tried using object cacheing (--cache=<cache dir>)?

from ldc.

rikkimax avatar rikkimax commented on July 4, 2024

I haven't tried caching.

However, there certainly is more granularity left i.e. linking isn't measured. Plus there could be a "and everything else after write" stage.

from ldc.

thewilsonator avatar thewilsonator commented on July 4, 2024

That function only does object file writing, not linking. There is a time trace-point https://github.com/ldc-developers/ldc/blob/master/driver/linker.cpp#L292 for linking. Is that insufficient?

from ldc.

rikkimax avatar rikkimax commented on July 4, 2024

Very insufficient.

Capture

tt.txt

from ldc.

thewilsonator avatar thewilsonator commented on July 4, 2024

all the rest of that is LLVM though, I'm not sure there in much we can do. and that is with to without cache?

from ldc.

kinke avatar kinke commented on July 4, 2024

Ths is LLVM codegen. IIRC, the first version of -ftime-trace did include the LLVM traces too, but Johan then rewrote it so that we only have LDC's own traces.

from ldc.

rikkimax avatar rikkimax commented on July 4, 2024

Turning on cache does indeed allow non-clean builds to be sped up significantly thanks!

However, I do think that something isn't right with it taking that long.
Without additional measurements there is no way to know what is causing it.

I'll close for now.

from ldc.

JohanEngelen avatar JohanEngelen commented on July 4, 2024

Ths is LLVM codegen. IIRC, the first version of -ftime-trace did include the LLVM traces too, but Johan then rewrote it so that we only have LDC's own traces.

This.

We can't (yet) easily hook into LLVM's timetracing together with LDC's own...

from ldc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.