Performance analysis results are mainly used for performance debugging as a part of the programs' development cycle. Now, emerging online optimization techniques have shown great power in performance optimization and fault detection, require performance analysis tools providing intermediate results interface. In this paper, we presented a performance analysis framework which using online monitoring for characterizing the programs' performance. Our implementation not only supplied client visualization for performance debugging, but also can expose runtime performance data to various online optimization tools. And, we use performance monitoring unit (PMU) to obtain runtime behavior of the observed programs that has proven to be more accurate and lower overhead.