script/attr_count_read: load and correlate all data
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sun, 31 Mar 2019 03:07:57 +0000 (16:07 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 1 May 2019 06:46:36 +0000 (06:46 +0000)
commitbd53819b28bab04408fc7fd7cfecc04a9aff9baf
treeb339f5e28c55326121118b78f646f1a20e66c0f6
parent60620273dba1d7f7ff25710c5dd8fd6d32f2d149
script/attr_count_read: load and correlate all data

This changes script/attr_count_read to take the samba private directory
as an argument and load all the databases at once, printing them as
one big table. It isn't extremely clear what it all means, but it
*tries* to tell you.

With --plot, it will attempt to load matplotlib and plot the number of
requested attributes against the number returned, with colour
of each point indicating its relative frequency. It is a scatterplot
that wants to be a heatmap.

With --no-casefold, you can get an extra confusing table where,
for instance, something repeatedly asks for "attributeId" which is not
accounted for, while in a completely different row an unrequested
"attributeID" is found many times over.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed May  1 06:46:36 UTC 2019 on sn-devel-184
script/attr_count_read