Issues using profiler

Posted by Andrei Popa on 06-Dec-2017 08:27

Hi all,

I'm currently using the ABL profiler to check for code that affects the application's performance.
The problem I am having is that not all files have their listings generated.
This is the code I am using to start the profiler:

ASSIGN
PROFILER:ENABLED = TRUE
PROFILER:FILE-NAME = SESSION:TEMP-DIR + "profiler.out"
PROFILER:DESCRIPTION = "Profiling"
.
ASSIGN
PROFILER:LISTINGS = TRUE
PROFILER:DIRECTORY = SESSION:TEMP-DIR + "listings"
PROFILER:TRACE-FILTER = "*"
PROFILER:TRACING = ""
.
ASSIGN
PROFILER:STATISTICS = TRUE.
ASSIGN
PROFILER:COVERAGE = TRUE
PROFILER:PROFILING = TRUE
.

When I stop the profiler I use the following code:

ASSIGN
PROFILER:PROFILING = FALSE
PROFILER:ENABLED = FALSE
.
lResult = PROFILER:WRITE-DATA().

The result of write-data is false, which indicates a problem, but I'm not sure how I can find out what it is.
The listings folder contains some files but not all of them so I suspect something is happening when they are generated.
The other files are generated fine. If I open profiler.out in DeveloperStudio everything looks alright, but when I click a file in Module Details, the Line Summary view displays this message instead of the file:

Profiling data does not contain the debug listing file information.
Profile with the -listing option to generate debug listing files.

Best regards,
Andrei

All Replies

Posted by Peter Judge on 06-Dec-2017 08:42

The PROFILER can’t generate listings if the source code isn’t available.

This thread is closed