[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-developer
Subject:    Re: [QGIS-Developer] [Qgis-user] QGIS data source speed profiling
From:       Charles Dixon-Paver <charles () kartoza ! com>
Date:       2021-07-23 15:36:15
Message-ID: CAK2KqicWxYXTV=KaSq93ruKGt7664qzGzoEsmEN97mwBxhe0MQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


You can use the F12 key to access the developer tools which have a panel
for recording and monitoring network requests, as well as timing certain
operations for debug purposes.

One other trick I thought of to try was to use the label expression
epoch($now) on both a remote and local layer to show the time that an
expression is evaluated per layer which should give some indication of how
quickly a layer is available to QGIS. I then added a canvas decoration with
the same expression and every time I panned I could get the difference in
milliseconds between the layers. This actually kind of worked to my
surprise. Although not ideal it certainly should give you some sort of
feedback on vector layers and identify some of the slower layers.

Some of the members of the development list may have more sophisticated
methods available so I've copied that list into the response.

Regards

On Fri, 23 Jul 2021 at 15:59, Hugh Kelley <hghklly@gmail.com> wrote:

> Hi all,
>
> I have a number of qgis files with a layers pulling datasets from a
> variety of sources that include local and shared drive files, shp, gpkg,
> tiff, and a few more, postgres databases and web feature services and map
> tile services.
>
> I'm wondering if anyone has any recommended workflows or tools for
> understanding the time required to refresh these layers. Some are faster
> than others and I have suspicions but I'd like to be able to see actual
> data confirming what I think are the slower layers.
>
> It's complicated by the fact that some symbologies take longer to render
> than others and that for non-local data sources, the connection speeds may
> change.
>
> Thanks for any suggestions. happy friday!
>
>
> Hugh
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>

[Attachment #5 (text/html)]

<div dir="ltr">You can use the F12 key to access the developer tools which have a \
panel for recording and monitoring network  requests, as well as timing certain \
operations for debug purposes.<div><br></div><div>One other trick I thought of to try \
was to use the label expression <span \
style="font-family:monospace">epoch($now)</span>  on both a remote and local layer to \
show the time that an expression is evaluated per layer which should give some \
indication of how quickly a layer is available to QGIS. I then added a canvas \
decoration with the same expression and every time  I panned I could get the \
difference in milliseconds between the layers. This actually kind of worked to my \
surprise. Although not ideal it certainly should give you some sort of feedback on \
vector layers and identify some of the  slower layers.</div><div><br></div><div>Some \
of the members of the development list may have more sophisticated methods available \
so I&#39;ve copied that list into the \
response.</div><div><br></div><div>Regards</div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 23 Jul 2021 at 15:59, \
Hugh Kelley &lt;<a href="mailto:hghklly@gmail.com">hghklly@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi \
all, <br></div><div><br></div><div>I have a number of qgis files with a layers \
pulling datasets from a variety of sources that include local and shared drive files, \
shp, gpkg, tiff, and a few more, postgres databases and web feature services and map \
tile services. <br></div><div><br></div><div>I&#39;m wondering if anyone has any \
recommended workflows or tools for understanding the time required to refresh these \
layers. Some are faster than others and I have suspicions but I&#39;d like to be able \
to see actual data confirming what I think are the slower layers. \
<br></div><div><br></div><div>It&#39;s complicated by the fact that some symbologies \
take longer to render than others and that for non-local data sources, the connection \
speeds may change. <br></div><div><br></div><div>Thanks for any suggestions. happy \
friday!<br></div><div><br><br><div dir="ltr"><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><div dir="ltr">Hugh           \
<br><div><br></div></div></div></div></div></div></div></div></div></div> \
_______________________________________________<br> Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" \
target="_blank">Qgis-user@lists.osgeo.org</a><br> List info: <a \
href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" \
                target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" \
rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
 </blockquote></div>



_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic