Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User wlaifa's Avatar
    Join Date
    Mar 2007
    Posts
    20
    Hi!
    I have to develop an application in symbian C++ for S60
    phones that measures the memory consumption and the time CPU;
    I know that performance investigator in Carbide C++ Pro can do the task
    but I have to develop my own application.
    Do you think that it is easy to develop such application like
    performance investigator with a sampler and a profiler or it is better to
    develop some classes to integrate in the lines of code of the
    application
    thanks for help

  2. #2
    Registered User a_binogeorge's Avatar
    Join Date
    May 2007
    Posts
    22
    I found dynamic memory profiling is possible using following code snippet

    int AllocatedBytes, TotalHeapCells, UsedHeapCells, FreeHeapCells, FreeBytes, BiggestBlock;
    /* Get Process Heap Status */
    User::AllocSize(AllocatedBytes);
    UsedHeapCells = User::CountAllocCells(FreeHeapCells);
    FreeBytes = User::Available(BiggestBlock);

    DEBUG_PRINT(("APA: Heap Cells Used:%d Free:%d Bytes Used:%d Free :%d Biggest BlockSize:%d", UsedHeapCells, FreeHeapCells, AllocatedBytes, FreeBytes, BiggestBlock));
    ----------------------------
    Bino George
    IM: a_binogeorge@yahoo.com a.binogeorge@gmail.com
    Mobile: +91-98861-74374

Similar Threads

  1. Performance estimation with emulators?
    By javanerd in forum Mobile Java General
    Replies: 3
    Last Post: 2007-04-23, 12:04
  2. Replies: 2
    Last Post: 2006-02-05, 04:19
  3. Symbian OS+nokia 6600+MMC card performance issues
    By mail2gops in forum General Development Questions
    Replies: 1
    Last Post: 2005-12-16, 14:16
  4. SMS I/O Control Application via Evaluation Module
    By alokghosh in forum Nokia M2M
    Replies: 2
    Last Post: 2003-06-18, 17:05
  5. Replies: 2
    Last Post: 2002-11-25, 20:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved