REF: move profile graph out of device.rs module (forgot this file in the previous commit)