We have a very large project using twitter bootstrap templates and third party jQuery plugins, the original developer added several plugins and CSS files without caring about the features and functions that he will be using.

As some of these styles and JS functions can be called dynamically and as the project is very very large doing manual checks is a very tedious job, so are you aware of any tools that can profile the usage of both the CSS and JS functions for a browsing session (lets assume the browsing session covers all the pages and js functions and clicks) and report the unused ones so that developers can remove them safely at the build stage into production to keep the payload to the minimum?

The above is valid for any site not just the ones using bootstrap templates and jQuery plugins.