home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Logfile handling, timestamp and speed
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Bosso" data-source="post: 27407" data-attributes="member: 10636"><p>To be able to see how long timme things take to execute, and then easier see where improvements for better performance can be made I suggest we put in milliseconds in the timestamp for each row.</p><p></p><p>Code for this: </p><p>-------------------------------------------------------------------</p><p>(I'm not a registred dev, so if someone could copy this into latest CVS)</p><p>File: core/guilib/log.cs</p><p>Line 132</p><p>Method: static public void WriteFile(LogType type, string format, params object[] arg)</p><p></p><p>Change line from:</p><p>writer.Write(DateTime.Now.ToShortDateString()+ " "+DateTime.Now.ToLongTimeString()+ " ");</p><p></p><p>To:</p><p>writer.Write(DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToString("hh:mm:ss.fff") + " ");</p><p></p><p></p><p>Resulting in logfile with timestamp with milliseconds.</p><p>-------------------------------------------------------------------</p><p></p><p></p><p>Using the latest CVS, with the blue2 skin I found that the CleanupThumbs()</p><p>writes a lot to the logfile, and this consumes about 300ms on a 3GHz P4.</p><p>This because of the little animation on top wich loads about 90 thumbs.</p><p>Just removing write to the logfile in the cleanup function will speed things up. </p><p></p><p>Code for this:</p><p>-----------------</p><p>File: Core/guilib/GUITextureManager.cs</p><p>Remove line 617</p><p>Log.Write("texturemanager:dispose:" + cached.Name + " total:" + _cache.Count + " mem left:" + GUIGraphicsContext.DX9Device.AvailableTextureMemory.ToString());</p><p></p><p></p><p>/Bosso</p></blockquote><p></p>
[QUOTE="Bosso, post: 27407, member: 10636"] To be able to see how long timme things take to execute, and then easier see where improvements for better performance can be made I suggest we put in milliseconds in the timestamp for each row. Code for this: ------------------------------------------------------------------- (I'm not a registred dev, so if someone could copy this into latest CVS) File: core/guilib/log.cs Line 132 Method: static public void WriteFile(LogType type, string format, params object[] arg) Change line from: writer.Write(DateTime.Now.ToShortDateString()+ " "+DateTime.Now.ToLongTimeString()+ " "); To: writer.Write(DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToString("hh:mm:ss.fff") + " "); Resulting in logfile with timestamp with milliseconds. ------------------------------------------------------------------- Using the latest CVS, with the blue2 skin I found that the CleanupThumbs() writes a lot to the logfile, and this consumes about 300ms on a 3GHz P4. This because of the little animation on top wich loads about 90 thumbs. Just removing write to the logfile in the cleanup function will speed things up. Code for this: ----------------- File: Core/guilib/GUITextureManager.cs Remove line 617 Log.Write("texturemanager:dispose:" + cached.Name + " total:" + _cache.Count + " mem left:" + GUIGraphicsContext.DX9Device.AvailableTextureMemory.ToString()); /Bosso [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Logfile handling, timestamp and speed
Contact us
RSS
Top
Bottom