Dear DSPC Team,
I want to perform Manual Profiling and export the results using the MATLAB API.
With the script below, I have been able to run AWD on the target.
awe_init
target_change_connection('ethernet')
awe_designer('Sample.awd')
process_menu_event('OnBuildAndRun')
After this, how can I perform Manual Profiling and export the results?
Please give me some advice.
Beat regards,
Makoto
12:05pm
Hi Makoto-san,
Please try the following:
awe_init();
awe_designer('Sample.awd');
GSYS=get_gsys();
process_menu_event('OnBuildAndRun');
diary profiling
target_profile(GSYS.SYS);
diary off
This will create a text file called "profiling.txt" in the current folder.
Thanks,
Gary
4:49pm
Updated response with additional information.
5:37am
Thank you for the advice!
I was able to obtain the profile results.
I have additional questions.
The target_profile function allows specifying FORMAT as an argument.
According to the description in profile_display.m, FORMAT can be specified as "pretty" or "csv".
When I specified "csv", it resulted in a comma-separated format, but the TOP HEAP value output was different.
Am I using it incorrectly?
Also, when compared to the CSV output manually via ManualProfiling, the amount of information is less.
Is this behavior according to the specifications of AudioWeaver?
As a reference, the profile results outputted by each method are attached to this message.
When you extract the attached Zip file, the following three files will be generated:
- profile_manual.csv: A csv file exported manually from "Manual Profile Layout"
- target_profile_pretty.txt: Output from the target_profile function
- target_profile_csv.txt: Output from the target_profile function with the 'csv' argument specified