static void swing_tenSecondProfile() { lock poorMansProfiling_lock; if (poorMansProfiling_isOn()) infoBox("Already profiling"); poorMansProfiling(); thread "Profile" { sleepSeconds(10); showText("10 Second Profile [" + localTime_24() + "]", poorMansProfiling_stopAndRenderResults(); } }