Listing 5: Profile Test scenario code

void MemoryUtilization(void)
{
  AppWatchMan  myAppWatchMan;
  myAppWatchMan.DoRounds("Before Test, ",
                          AWM::BEGIN_PROFILE_TEST);

  char* pBuffer = new char [sizeof("Hello World")];
  strcpy(pBuffer, "Hello World");
  delete [] pBuffer;

  myAppWatchMan.DoRounds("After Test, ",
                          AWM::END_PROFILE_TEST);
}
— End of Listing —