Getting resource usage for JSX