assembly - How to restrict Vtune Analysis to a specific function -


i have program basic structure below :

<c language headers> main() {     malloc() allocations , file reads these buffers     call assembly language routine needs optimized maximum     write output of files , free() exit() } 

the assembly language program computes checksum of data in buffer, , intention optimize absolute maximum. not make system calls, or library function calls.

i have installed intel vtune amplifier xe suite vs 2015.

how specify vtune focus strictly on assembly language routine part, , skip analysis on "c" language preparatory parts. seem getting data cumulated, instruction count, or cpi, etc. possible data loops , branches within assembly language subroutine. if so, please advise how that.

thanks

you can instrument code via vtune provided api analyze specific regions in workload. use task api tracking thread-specific activities or frame api analyzing global stages in workload.

configuring analysis type, select option "analyze user tasks" handle instrumented tasks. when collection finished, choose groupings beginning task or frame see performance data aggregated instrumented intervals. you'll see tasks/frames in timeline.

as example change code like:

<c language headers> #include "ittnotify.h"  main() {    __itt_domain* domain = __itt_domain_create("mydomain");   __itt_string_handle* task = __itt_string_handle_create("mytask");    malloc() allocations , file reads these buffers    __itt_task_begin(domain, __itt_null, __itt_null, task);    call assembly language routine needs optimized maximum    __itt_task_end(domain);    write output of files , free()   exit() } 

don't forget follow basic configuration compile code.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -