Call for vote on MS-RFC-28: LOG/DEBUG output mechanism
Daniel Morissette
dmorissette at MAPGEARS.COM
Fri Jun 29 14:41:32 EDT 2007
Jeff McKenna wrote:
>
> As one of those users similar to Ed, I'm constantly looking at DEBUG
> messages in layers/maps for performance. Sometimes (like my sample
> debug output below) the messages are not that useful, showing only a few
> layer's drawing time and the total time. So if RFC#28 improves the
> output, I'm all for it.
>
> msDrawMap(): Layer 0 (Ontario_Landcover), 0.141s
> msDrawMap(): Layer 1 (Conservation_Area), 0.000s
> msDrawMap(): Layer 2 (Provincial_Parks), 0.000s
> msDrawMap(): Layer 3 (National_Parks), 0.000s
> msDrawMap(): Layer 4 (Municipal_Boundary), 0.000s
> msDrawMap(): Layer 5 (Municipal_Boundary_Lower), 0.00
> msDrawMap(): Layer 6 (Geographic_Lot_Fabric), 0.000s
> msDrawMap(): Layer 7 (Geographic_Township), 0.000s
> msDrawMap(): Layer 8 (NTS_Railway), 0.031s
> msDrawMap(): Layer 9 (DMTI_Major_Roads), 0.000s
> msDrawMap(): Drawing Label Cache, 0.000s
> msDrawMap() total time: 30.406s
>
This is what you get if you only set DEBUG ON at the map level. If you
set DEBUG on in some (or all) layers as well then you'll get more info
specific to each layer. What kind of info you get in this case depends
on each layer type.
I'm not planning to spend lots of time adding more debug output right
away, but this RFC will definitely set the bases for better and more
useful timing and debug info. If there are specific timings or debug
info you'd like to see you're welcome to file enhancement tickets about
them. If they can be added easily then I'll be happy to add them.
Note that in your output above the total time is 30.406s but the
individual layer times are much less than that. Is this a real output or
did you edit it? I wonder where the difference comes from. I think 30
seconds is the default timeout for WMS connections, did your map include
a WMS layer that timed out by any chance? You'd get some useful debug
info by setting DEBUG ON in that WMS layer.
Daniel
--
Daniel Morissette
http://www.mapgears.com/
More information about the mapserver-dev
mailing list