Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd glue to use SpiderMonkey's memory reporting from Rust code. #177
Conversation
|
For this particular API, C++ glue is not necessary. https://github.com/michaelwu/rust-bindgen/tree/sm-hacks along with https://github.com/michaelwu/llvm and https://github.com/michaelwu/clang will do the trick. I can generate some bindings for you if you want - it's a bit of a hassle to setup bindgen. |
|
For reference, https://gist.github.com/michaelwu/9f10f60dc8b2c8e881cd is the bindgen output on MemoryMetrics.h (without your sm patch). Needs a bit of cleanup to work, especially since this file seems to trigger a few new features I haven't fully tested yet. Constructing and destructing C++ objects may require C++ glue, but many other things can be covered by the generator. |
|
@bors-servo: r+ |
|
|
Add glue to use SpiderMonkey's memory reporting from Rust code. This cannot land until servo/mozjs#49 has landed. And it must land before servo/servo#6572 can land.
|
|
nnethercote commentedJul 8, 2015
This cannot land until servo/mozjs#49 has landed. And it must land before servo/servo#6572 can land.