Download
(8 MB)
Download
Updated: 11/13/23 03:22 PM
Pictures
File Info
Compatibility:
Endless Archive (9.2.5)
Updated:11/13/23 03:22 PM
Created:10/08/18 12:28 PM
Monthly downloads:74
Total downloads:6,169
Favorites:24
MD5:
ESO Profiler  Popular! (More than 5000 hits)
Version: 1.4.1
by: votan, sirinsidiator

A big "Thank You!" to ZOS for providing us with the API for script profiling.
DependenciesThe Profiler
You have a new tab in your "Journal", now.
There is a button at the bottom to start/stop the profiler.
You get a summary with the functions called and their total time used.
You can click a row to see its call-stack. The shown call-stack is the slowest run to give you a hint what to look for.
For more details there is an "Export" button in the top-right corner. The UI will reload afterwards to save the data to disk.

The profiler auto-starts on reloadui to see what's going on during load. Because settings are not available at that time, this can not be made optional. Load the addon if you want to profile, only.
There is a button to profile the UI during re-load. It enables auto-start profiling and reloads UI. 2 seconds after loading you auto return to the profiler UI.

ESOProfiler Viewer
The addon also includes an external application which allows you to view the exported data with perfetto. You can find the source for the application on github.

The external viewer also supports the "esoui-dev" protocol, which allows opening files in an editor of your choice by clicking on the location path in the slice details. For more information on how to set it up check the "About" tab of sirinsidiator's log viewer.

In order to load large files some extra steps are required. Check the readme on github for instructions.
version 1.4.1:
- Updated external viewer to version 2.1 with support for large trace files
- API bump for "Secret of the Telvanni"

version 1.4.0:
- Updated external viewer to version 2.0 based on the successor to catapult-tracing
- Added information about memory usage, fps and latency for display in the external viewer
- API bump for "Firesong"

version 1.3.4:
- API bump for "Blackwood"
- Removed legacy code.

version 1.3.3:
- Fixed tooltip error: ZOS did replace ZO_ItemTooltip_SetStolen with ZO_ItemTooltip_UpdateVisualStyle.

version 1.3.2:
- API bump for "Harrowstrom"
- Toggle profiler key-bind working outside profiler screen, too. As requested by @Solinur.

version 1.3.1:
- Update to API 100028 "Scalebreaker".

version 1.3.0:
- Update to API 100027 "Elsweyr".
- New record data types.
- New option: Profile UI Load.
- New script profiler window.

version 1.2.0:
- Added "Find Sub Calls".
- Update to API 100026 "Wrathstone"

made some major improvements to the viewer

* improved catapult-tracing fixes for use with node-webkit
* use JSONStream to import and export json data (to avoid crashes when handling lots of data)
* increased heap memory size (to fix crashes when loading large files)
* included conversion of Lua data in the importer dialog steps
* added dialog when saving json files
* removed bin/ folder (everything is now directly in viewer/)
* added app icon
Optional Files (0)


Archived Files (9)
File Name
Version
Size
Uploader
Date
1.4.0
5MB
sirinsidiator
12/12/22 03:17 PM
1.3.4
957kB
sirinsidiator
05/04/21 02:23 PM
1.3.3
957kB
votan
06/11/20 01:45 AM
1.3.2
969kB
votan
03/21/20 12:15 PM
1.3.1
969kB
votan
07/30/19 11:58 AM
1.3.0
970kB
votan
05/10/19 11:09 AM
1.2.0
891kB
votan
02/23/19 10:15 AM
1.1.0
961kB
sirinsidiator
10/09/18 09:59 AM
1.0.0
881kB
sirinsidiator
10/08/18 12:28 PM


Post A Reply Comment Options
Unread 05/12/21, 11:45 AM  
zillaf

Forum posts: 4
File comments: 18
Uploads: 0
If anyone runs into the Problem again, when loging a reload ui and can`t login anymore.
No reinstall is needed.

Just change in the usersettings.txt the line SET StartLuaProfilingOnUILoad "1" back to "0".
This should let you start the game normaly again.
Report comment to moderator  
Reply With Quote
Unread 08/09/20, 05:40 AM  
votan
 
votan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 577
File comments: 1667
Uploads: 40
Originally Posted by TagCdog
Hi Votan,

I am an end user that wanted to see if profiler could identify which of my addons was affecting my performance and/or causing some issues.

I installed ESO Profiler and logged into my character. I then ran the command to profile a UI reload. The game eventually crashed to the login screen. After that I could no longer log into a character at all (it would just crash back to the login screen each attempt - no error message).

To ensure nothing got corrupted, I re-installed a fresh copy of all my addons and libraries. I still couldn't login.

I then disabled *all* of my addons but *not* my libraries and the crash to login screen still kept happening.

After trying to find which library was causing issues I found that disabling LibQuestData allowed me to login to a character (still no addons enabled). I do however want to reiterate that everything allowed me to login without issues before I tried to profile a UI reload.

As of now I have been able to login with some of my addons, but have not yet been able to narrow down which specific addon(s) is causing this issue. In any case, the addons all worked before my attempt at profiling a UI reload.

I am going to continue to investigate, but while I do, I wanted to see if you have any idea what is going on and/or why?

Is is possible that a function within profiler is corrupting something?

I will post an update as I find out more.

As a final note, it just occurred to me that I attempted to use profiler before and that the exact same issue happened to me before (I didn't include it in the forum post because I didn't think it relevant at the time). I guess what I am trying to point out is that I was able to unintentionally reproduce this issue. It started happening immediately after attempting to profile a UI reload both times: https://www.esoui.com/forums/showthread.php?t=9287
Profiling slows down execution a bit, because the client has to record everything. I think you hit a timeout and/or string allocation limit.
In this case disabling some keeps you below the limit, but no addon is really "guilty".
Report comment to moderator  
Reply With Quote
Unread 08/09/20, 02:29 AM  
TagCdog

Forum posts: 24
File comments: 43
Uploads: 0
Hi Votan,

I am an end user that wanted to see if profiler could identify which of my addons was affecting my performance and/or causing some issues.

I installed ESO Profiler and logged into my character. I then ran the command to profile a UI reload. The game eventually crashed to the login screen. After that I could no longer log into a character at all (it would just crash back to the login screen each attempt - no error message).

To ensure nothing got corrupted, I re-installed a fresh copy of all my addons and libraries. I still couldn't login.

I then disabled *all* of my addons but *not* my libraries and the crash to login screen still kept happening.

After trying to find which library was causing issues I found that disabling LibQuestData allowed me to login to a character (still no addons enabled). I do however want to reiterate that everything allowed me to login without issues before I tried to profile a UI reload.

As of now I have been able to login with some of my addons, but have not yet been able to narrow down which specific addon(s) is causing this issue. In any case, the addons all worked before my attempt at profiling a UI reload.

I am going to continue to investigate, but while I do, I wanted to see if you have any idea what is going on and/or why?

Is is possible that a function within profiler is corrupting something?

I will post an update as I find out more.

As a final note, it just occurred to me that I attempted to use profiler before and that the exact same issue happened to me before (I didn't include it in the forum post because I didn't think it relevant at the time). I guess what I am trying to point out is that I was able to unintentionally reproduce this issue. It started happening immediately after attempting to profile a UI reload both times: https://www.esoui.com/forums/showthread.php?t=9287
Report comment to moderator  
Reply With Quote
Unread 10/07/19, 11:32 AM  
chatrat12

Forum posts: 4
File comments: 4
Uploads: 0
This is awesome! I feel like this tool should be included in the 'Getting Started` tutorials out there. I think addons would be so much better if addon creators out there were more performance conscious (Some certainly are). Using this to profile my addon
Report comment to moderator  
Reply With Quote
Unread 10/08/18, 08:58 PM  
Architecture
 
Architecture's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 79
Uploads: 8
Thanks! This is promising
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: