[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Completely blank flowgraph takes a minute to generate
From: |
Johannes Demel |
Subject: |
Re: Completely blank flowgraph takes a minute to generate |
Date: |
Wed, 29 Sep 2021 11:21:53 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
Hi,
I used:
https://docs.python.org/3/library/profile.html#module-cProfile
in the past to locate the problematic lines of code.
```
import cProfile
import pstats
with cProfile.Profile() as pr:
run_the_problematic_function_etc()
stats = pstats.Stats(pr)
stats.sort_stats('cumtime').reverse_order()
stats.print_stats()
```
You might want to adopt these lines for your use-case. I started at the
top-level of my application and then gradually moved the code to a more
fitting function.
Cheers
Johannes
On 28.09.21 23:40, Jameson Collins wrote:
I have a completely blank flowgraph (well just the default 'Options' block).
On my 8 core, 2 GHz, Intel based virtual machine this flowgraph
generates in under a second.
On my 4 core, 1GHz, embedded ARM processor it takes 56 seconds and
completely maxes out 1 core while it's running.
Why might cause this? How might I troubleshoot it?