X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Georg Newsgroups: comp.os.msdos.djgpp Subject: gprof output Date: Sat, 26 May 2012 11:34:01 -0700 (PDT) Organization: http://groups.google.com Lines: 44 Message-ID: <7822bb4a-1059-491a-8489-e1d9f3dbc501@l17g2000vbj.googlegroups.com> NNTP-Posting-Host: 46.78.35.225 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1338057241 16909 127.0.0.1 (26 May 2012 18:34:01 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sat, 26 May 2012 18:34:01 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: l17g2000vbj.googlegroups.com; posting-host=46.78.35.225; posting-account=v5xbdQoAAAAOGc9Ccc-kLZyobvPlN3Qr User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4,gzip(gfe) Bytes: 1975 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I tried gprof to profile one of my programs. This is the ouput: Flat profile: Each sample counts as 0.0555556 seconds. % cumulative self self total time seconds seconds calls Ts/call Ts/call name 87.39 11.56 11.56 __dpmi_int 3.78 12.06 0.50 __brk 1.68 12.28 0.22 __dpmi_simulate_real_mod 1.68 12.50 0.22 days_to_years 1.68 12.72 0.22 timesub 0.84 12.83 0.11 tmcomp 0.42 12.89 0.06 GdMoveMouse 0.42 12.94 0.06 MOU_Read 0.42 13.00 0.06 TT_RunIns 0.42 13.06 0.06 elapse_timeouts() 0.42 13.11 0.06 __dj_movedata 0.42 13.17 0.06 _int86 0.42 13.22 0.06 tmnormalize 0.00 13.22 0.00 23310 0.00 0.00 dStr_append_c My question is: is it normal that a djgpp program uses 87% for __dpmi_int? If not, what could be done to reduce this? Georg