profile_history - display graphical profiling timeline data

버전 1.7.0.0 (57.9 KB) 작성자: Yair Altman
Display profiling data as an interactive timeline graph
다운로드 수: 934
업데이트 날짜: 2014/6/30

라이선스 보기

profile_history analyzes the latest profiling session and displays the function-call timings and durations in a graphical timeline. The function labels and timeline bars are clickable, linking to their respective detailed profiling report (of the builtin Matlab profiler).

profile_history(profData) displays the timeline of a specific profiling session, that was previously stored via a profData=profile('info') command.

profile_history(initialDetail) or profile_history(profData,initialDetail) displays the timeline showing an initial detail level of a specified number of functions (default initialDetail=15). The detail level can then be changed interactively, using a slider at the bottom of the figure.

Sample usage:
profile on; myProgram(); profile_history
profile on; myProgram(); profData=profile('info'); profile_history(profData)
profile_history(20);
profile_history(profData,15);

Technical description:
http://UndocumentedMatlab.com/blog/function-call-timeline-profiling

Note #1:
profile_history uses a wrapper function for the built-in profile.m that is located in the @char subfolder. If for some reason you see problems when running the profiler, simply delete the @char folder. In order to be able to use profile_history after you delete the @char folder, add the -timestamp parameter whenever you profile:
profile on -timestamp; myProgram(); profile_history
(adding the -timestamp parameter is not needed when the @char exists)

Note #2:
This utility relies on the undocumented and unsupported profiler timestamp history functionality, as described in http://UndocumentedMatlab.com/blog/undocumented-profiler-options-part-3#detailed .
It works on all the recent Matlab releases (inc. R2014a), but might stop working in any future Matlab release without prior notice.

Bugs and suggestions:
Please send to Yair Altman (altmany at gmail dot com)

인용 양식

Yair Altman (2024). profile_history - display graphical profiling timeline data (https://www.mathworks.com/matlabcentral/fileexchange/46976-profile_history-display-graphical-profiling-timeline-data), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.7.0.0

Fix for R2010a

1.6.0.0

Fixed bug in case of few profiled functions (checkbox didn't work)

1.5.0.0

minor title typo fix

1.4.0.0

Added initialDetail input arg and interactive detail-control functionality

1.3.0.0

External tick marks; fixed wrapper function eddge-case as per user feedback

1.2.0.0

Fix the previous update...

1.1.0.0

Fixes for HG2; fix info-box alignment near figure's right edge

1.0.0.0