change profiler to non-static class