Skip to main content
Solved

Performance log of each transformer

  • January 15, 2025
  • 4 replies
  • 42 views

james_c_452
Supporter
Forum|alt.badge.img+7

Hi,

I think this question has been asked before, but the links in its answer were broken so I’m unsure what the answer was.

If anyone is able to put me in the right direction that would be great

Basically I have a complicated workspace doing a few things on large files. In order to make it more efficient I would like to know if there is a reasonably easy way to get a rough indication how long each individual transformer was running in total. Then I can get an idea of where bottle necks are, or things I could improve.

Currently I just look through the log to see if something takes a while, but that's tedious. Is there a better way? Is it possible to get some sort of summary how long each transformer takes to run?

I do run the workspace on FME server/flow, though I do test it locally as well.

Thanks

Best answer by virtualcitymatt

https://support.safe.com/hc/en-us/articles/25407794017933-Performance-Tuning-FME

In here there is a section on performance profiling: 
 

Additional Performance Tuning Tips

In FME Workbench, you can run a profile of your FME Workspace to obtain a detailed log of how much time is spent in each underlying factory or function. Use Tools -> Edit Header to add the directive: FME_PROFILE_RESULT_CSV i.e:

FME_PROFILE_RESULT_CSV C:\TEMP\profile.csv

Notes:

  • The profile directive is not supported on FME Flow
  • Don't forget to remove the profile directive for your production workspace since profiling also has an impact on performance!


It's sometimes worth using a Performance Monitoring tool (such as PerfMon) to log the CPU and memory usage of a process.

 

It’s not quite a breakdown per transformer I don’t think, however, it does give you an indicator on which factories are using the time.

You’re right in that it’s a bit of tedious process, and even going through the log doesn’t always give you a good insight into where the bottle necks are but it is really important still. 

In general going through this article series is great and will give you some excellent insights in how fme works

 

View original
Did this help you find an answer to your question?

4 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+34
  • Celebrity
  • Best Answer
  • January 15, 2025

https://support.safe.com/hc/en-us/articles/25407794017933-Performance-Tuning-FME

In here there is a section on performance profiling: 
 

Additional Performance Tuning Tips

In FME Workbench, you can run a profile of your FME Workspace to obtain a detailed log of how much time is spent in each underlying factory or function. Use Tools -> Edit Header to add the directive: FME_PROFILE_RESULT_CSV i.e:

FME_PROFILE_RESULT_CSV C:\TEMP\profile.csv

Notes:

  • The profile directive is not supported on FME Flow
  • Don't forget to remove the profile directive for your production workspace since profiling also has an impact on performance!


It's sometimes worth using a Performance Monitoring tool (such as PerfMon) to log the CPU and memory usage of a process.

 

It’s not quite a breakdown per transformer I don’t think, however, it does give you an indicator on which factories are using the time.

You’re right in that it’s a bit of tedious process, and even going through the log doesn’t always give you a good insight into where the bottle necks are but it is really important still. 

In general going through this article series is great and will give you some excellent insights in how fme works

 


david_r
Evangelist
  • January 15, 2025

Just remember to remove the FME_PROFILE_RESULT_CSV setting before publishing the workspace to production, as it can introduce quite a lot of overhead on each execution.

Also, make sure you’re only working on local files. Directly working on large files on a network drive can be catastrophic for performance.


virtualcitymatt
Celebrity
Forum|alt.badge.img+34
david_r wrote:

 

Also, make sure you’re only working on local files. Directly working on large files on a network drive can be catastrophic for performance.

100% - at least this is nicely hinted at in the log file (CPU time vs Total Time)


james_c_452
Supporter
Forum|alt.badge.img+7
  • Author
  • Supporter
  • January 16, 2025

Thanks ​@virtualcitymatt and ​@david_r ,
That’s pretty much exactly what I’m after. I’ll be able to do this to find the worst bottle necks


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings