Skip to content

Instantly share code, notes, and snippets.

View n0uk's full-sized avatar

Maksim Ustichenko n0uk

View GitHub Profile
extern crate nalgebra;
extern crate ncollide2d;
extern crate nphysics2d;
use nalgebra::{Isometry2, Vector2};
use ncollide2d::shape::{Ball, Cuboid, ShapeHandle};
use ncollide2d::world::CollisionGroups;
use nphysics2d::object::{BodyHandle, BodyStatus, ColliderHandle, Material};
use nphysics2d::volumetric::Volumetric;
use nphysics2d::world::World;
reading file "heaptrack.nphysics-0_8-memleak.6251.gz" - please wait, this might take some time...
Debuggee command was: ./target/debug/nphysics-0_8-memleak
finished reading file, now analyzing data:
MOST CALLS TO ALLOCATION FUNCTIONS
9302 calls to allocation functions with 24.02MB peak consumption from
alloc_system::platform::_$LT$impl$u20$core..alloc..GlobalAlloc$u20$for$u20$alloc_system..System$GT$::realloc::h182880fdf1f9b8aa
at /checkout/src/liballoc_system/lib.rs:171
in /root/nphysics-0_8-memleak/target/debug/nphysics-0_8-memleak
7686 calls with 28.67KB peak consumption from:
--------------------------------------------------------------------------------
Command: ./target/debug/nphysics-0_8-memleak
Massif arguments: (none)
ms_print arguments: massif.out.4904
--------------------------------------------------------------------------------
MB
45.51^ #
| #::::::::::::::::::::::::@: