ProfileManager::ProfileManager(int action)
{
  helper = new Helper();

  origin = action;
  profileInit();
}
ProfileManager::ProfileManager(int action, QString string)
{
  helper = new Helper();

  origin = action;
  profile = string;
  profileInit();
}
Example #3
0
//===========================================================================
void Scene::init()
{
	vertexCount = 0;
	polyCount = 0;
	modelCount = 0;
	profileInit();
	texture = new Texture("assets/images/test.png");
	sceneTree = new kdTree();
}
VICP_Status VICP_wait(VICP_ResourceType resource)
/* ARGSUSED */
{
#ifdef _DBG_VERBOSE
	printf("VICP_wait called \n");
#endif

    /*
     * Set the task priority to low over here
     */
    /*
     * When interrupt mode is not enabled then this poll word 
     * would be pointing to a location on ARM968 DTCM. If interrupt 
     * mode is enabled then setting this flag has no meaning.
     */
    (*poll_word) |= 0x01;  
    /* 
     * Waiting for ARM968 to finish. In interrupt mode this flag will be 
     * set by HDVICP_Done function called by interrupt handler on ARM926 
     * side.
     */


    while(((*poll_word) & 0x02) == 0);  // bit 1 for ARM968 to start
#ifdef _DBG_VERBOSE
    printf("Control is back to ARM926\n");
#endif

    /*---------------------------------------------------------*/
    /*   Configuring timer-0 to start counting for the end portion 
     *   of process call            */  
    /*---------------------------------------------------------*/            
#ifdef ENABLE_PROFILE_AT_FRM_LVL_ON_926
        profileInit(0); 
        profileStart(0);
#endif
    (*poll_word) &= 0xFFFFFFFD ;   // Set the wait bit to 0 again
    return (VICP_OK);
}