Comments (3)
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.
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:
- 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. - 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.
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)
- IWYU is noise in our commit history HOT 2
- Crash when capture twice HOT 1
- Orbit not compiling due to error in build HOT 11
- Add usage documentation for 1.0.2 (Windows) HOT 1
- ENE211-0025/2020
- New build system under Linux HOT 19
- Visualize .orbit output data in case of CLI version HOT 6
- Orbit's messages appear in user's app stdout/stderr HOT 2
- Orbit crashed when trying to connect to QT application HOT 4
- Doesn't build with Boost outcome HOT 1
- Orbit client crashes when unhook all the functions HOT 1
- Callstack selection is confusing HOT 3
- build.sh error HOT 11
- Compile error on Ubuntu 22.04 HOT 1
- Support split debug symbols without build-id (gentoo-style) HOT 2
- Build failing on Ubuntu 23.10 HOT 1
- U888
- orbit: paly_lift.py collison issue HOT 1
- compile failed on Ubuntu20.04.1 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orbit.