AnsweredAssumed Answered

Statistical Profiling Automation ezKit TS201

Question asked by lucas_embraer on Dec 12, 2014
Latest reply on Dec 18, 2014 by lucas_embraer



I`m trying to automate the process of statistical profiling in the TS201 of a ezkit. With simulation or connecting with the ezkit by USB or ICE and using the Visual DSP IDE I can extract the profile and save it. But when I use the automation API the profile collected is always empty.


Here is the code I'm using:


   pSession = pApp->CreateMPSession( buffer, session_info->debug_target, session_info->plataform_name)


    pProcessor = pSession->ProcessorList->GetItem( CComVariant( 1 ) );


    pMemoryType = pProcessor->MemoryTypeList->GetItem( (long)0 );


    IADspProfileSessionListPtr pProfileSessionList = pProcessor->ProfileSessionList;


    pProfileSession = pProfileSessionList->CreateSession("TigerSharc Memory 1");


    pProfileSession->MemoryName = pProfileSessionList->MemoryNames->Item(0);

    pProfileSession->Metrics = pProfileSessionList->GetAvailableMetrics(pProfileSession->MemoryName);


    pProfileSession->FilterType = profileEntireMemory;

    pProfileSession->DebugSamplesOnly = FALSE;






    printf("Elapsed Total: %d\n", pProfileSession->TotalSampleCount);


    pProfileSession->SaveProfileData("C:\\myprofile3", profileXML);


I already checked and the profile is marked as enabled. The Total Sample time is also zero.


The resulted profile is:


<?xml version="1.0" encoding='ISO-8859-1'?>

<visualdsp-profile-session schema="1">


  <profile-session-name>"TigerSharc Memory 1"</profile-session-name>












Another problem that I found is that the profile is being saved at the "AppData\Local\VirtualStore" folder of the current user. Is there a way to change it?


Best regards,