The results of a Guidewire Profiler analysis on a web page showed a large unaccounted-for time. The developer cannot identify which block of code is taking up so much time by examining the profiler output. Which approach can help to account for the large time spent and improve reading of the profiler output?
Show answerHide answer
Correct answer: C Surround the blocks of code with profiler tags.
Explanation
Answer Option (Which option is correct) C. Surround the blocks of code with profiler tags.Explanation:
Profiler tags divide custom processing into named timed sections. Adding tags around the suspected code makes otherwise unaccounted-for own time easier to attribute. Timestamps and ordinary logging do not add those named sections to the profiler result.
Verification note: The exact option selection could not be independently verified from accessible official documentation. Relevant official topic links are provided, but some exact configuration or training rules require the product Configuration Guide or Cloud Standards behind sign-in. The source key is retained.
Why the other options are incorrect:
A. Identify the PCF file name in the profiler output:
A PCF name identifies the page configuration. It does not divide custom execution into timed sections. Profiler tags provide that missing attribution.
B. Print out the timestamp before and after the code blocks:
Printed timestamps create separate output. They do not add named frames to the profiler tree. Instrument the code within the profiler instead.
D. Create a function to calculate processing time in the class:
A custom elapsed-time function measures outside the existing profiler structure. Its result does not automatically identify profiler own time. Named tags connect timing to the analyzed stack.
References:
Guidewire-authored PolicyCenter 10.1.2 - Web and entry-point profilers