-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How is the library tested? (I cannot run it via Valgrind + real Dart) #9
Comments
What we currently do is emulating the DartVM in rust, just emulating the behavior that we got by reading the But for actual testing on real Dart, it is hard for now, what you can do is running a simple flutter app with no UI and run it on a real device on Then you have an observability URL that you can open in the browser and keep an eye on the memory usage. In the app code, you can pass messages between Rust and Dart with a big payload (say 512kb or 1M) and start observing the memory usage getting high and low or if it keeps growing indefinitely. Also, it would be cool to do the same experiment with the new Would be super helpful to publish the result/screenshots of the memory graph here too. |
Good idea. I am currently trying to do that using a dart (not flutter) vm. The valgrind outputs are not that good currently, but I will show you the results when I figure it out. |
Hi, I have added:
See: the "test" CI workflow in https://github.com/fzyzcjy/flutter_rust_bridge Seems that allo-isolate does not have memory problems. Yeah! |
That's good to know, Thanks! |
You are welcome! |
Since this lib interacts with Dart, it is very important to test it with real Dart. Otherwise, you know, memory problems can exist and cause big troubles. I have tried to use Valgrind on a (real) Dart + rust but failed. So how do you guys to it? Thanks
The text was updated successfully, but these errors were encountered: