A developer is tasked with enhancing the efficiency of a serverless function that is triggered by a data streaming platform. The function logs show irregular execution times and occasional timeout errors. To isolate the slow-executing code segments and optimize them, which service should the developer utilize to examine the function's performance and track the detailed execution path?
The service for tracking management actions across accounts via API calls
The service providing detailed tracing and analysis for serverless applications
The performance optimization and profiling service for applications
The service mainly focused on security vulnerability assessments