Giter Site home page Giter Site logo

Comments (3)

florian-kuebler avatar florian-kuebler commented on June 2, 2024 1

Sorry for being late to this. So I am not surprised if we do waste (or even leak) memory at some places. We unfortunately did not had time to look into memory. Also I agree that profiling Orbit with Orbit (or using introspection), will work, but also that Orbit is not particularly good in memory profiling (it has some memory tracking though).

What I know for sure is, that we keep every record of a function call (what we call a timer) in memory. That would 1.000.000* 10sec * ~4x8 Bytes (uint64) is around 0.3 Gb. That does not explain that completely. But we do have some of these places. So I would not be surprised if this is already the reason.

Unfortunately, I won't have any time soon to look into this more closely....

from orbit.

beckerhe avatar beckerhe commented on June 2, 2024

Not sure if I would call it a bug, but it also doesn't surprise me. AFAIK we never optimized for such a high load of calls.

With "Orbit app" I guess you mean the client, right? So far the limiting factor has always been the rendering.

We calculate some histograms but I don't know from the top of my head when this happens. I know some parts are done in the postprocessing step, but probably not all of it.

Maybe @florian-kuebler knows more.

There are 2 ways to find out more details:

  1. Orbit has introspection which can be enabled when Orbit is started with the --devmode option. (There is a button above the capture window.). This allows you to see how long certain manually instrumented function in the Orbit Client take to execute. So far mostly the rendering code is instrumented.
  2. You can use Orbit to profile Orbit. Therefore you have to start both OrbitService and Orbit a second time. I assume you're running everything on the same machine. To make the two OrbitService not clash you have to give it a different port number. Hence start the second OrbitService with the options --grpc_port=1025 --producer_side_server=false and the client with the option --grpc_port=1025. Then you can choose the first OrbitService as the target process in the second instance of the client. (I hope that's not too confusing). (Note that you can't use user space instrumentation and/or manual instrumentation in the second Service/Client/instance-pair.

I hope that helps. 😬

from orbit.

alexkalmuk avatar alexkalmuk commented on June 2, 2024

Thank you for these hints! I'm not sure if it helps with memory profiling, but I'll give it a try in any case.
Yes, by "Orbit app" I meant the client.

from orbit.

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.