discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Get console information in order to store it

C
Clemente
Thu, Dec 20, 2018 4:57 PM

Hi everyone,

Is it possible to get the information (data) shown into the console ? I
would like to store this information in order to make analytics of different
case of rendering

for example:

Geometries in cache: 175
Geometry cache size in bytes: 5943984
CGAL Polyhedrons in cache: 21
CGAL cache size in bytes: 200982320
Total rendering time: 0 hours, 2 minutes, 41 seconds
Top level object is a 3D object:
Simple:        yes
Vertices:    7448
Halfedges:  22482
Edges:      11241
Halffacets:  7584
Facets:      3792
Volumes:        2
Rendering finished.

In others discussion , 2> (standar output) was mentioned, but in my case
it does not work

Kind Regards

Clemente

--
Sent from: http://forum.openscad.org/

Hi everyone, Is it possible to get the information (data) shown into the console ? I would like to store this information in order to make analytics of different case of rendering for example: Geometries in cache: 175 Geometry cache size in bytes: 5943984 CGAL Polyhedrons in cache: 21 CGAL cache size in bytes: 200982320 Total rendering time: 0 hours, 2 minutes, 41 seconds Top level object is a 3D object: Simple: yes Vertices: 7448 Halfedges: 22482 Edges: 11241 Halffacets: 7584 Facets: 3792 Volumes: 2 Rendering finished. In others discussion , 2> (standar output) was mentioned, but in my case it does not work Kind Regards Clemente -- Sent from: http://forum.openscad.org/
M
MichaelAtOz
Thu, Dec 20, 2018 6:00 PM

You can right-click the GUI.
On the command line '-o' with output file ext '.echo' will dump the console.


Admin - email* me if you need anything, or if I've done something stupid...

  • click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

Sent from: http://forum.openscad.org/

You can right-click the GUI. On the command line '-o' with output file ext '.echo' will dump the console. ----- Admin - email* me if you need anything, or if I've done something stupid... * click on my MichaelAtOz label, there is a link to email me. Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- Sent from: http://forum.openscad.org/
NH
nop head
Thu, Dec 20, 2018 6:06 PM

Yes but with .echo there is no rendering, so you only get what is in the
echo statements plus warnings and errors.

On Thu, 20 Dec 2018 at 18:01, MichaelAtOz oz.at.michael@gmail.com wrote:

You can right-click the GUI.
On the command line '-o' with output file ext '.echo' will dump the
console.


Admin - email* me if you need anything, or if I've done something stupid...

  • click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the
Public Domain; to the extent possible under law, I have waived all
copyright and related or neighbouring rights to this work. Obviously
inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it!
http://www.ourfairdeal.org/  time is running out!

Sent from: http://forum.openscad.org/


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Yes but with .echo there is no rendering, so you only get what is in the echo statements plus warnings and errors. On Thu, 20 Dec 2018 at 18:01, MichaelAtOz <oz.at.michael@gmail.com> wrote: > You can right-click the GUI. > On the command line '-o' with output file ext '.echo' will dump the > console. > > > > ----- > Admin - email* me if you need anything, or if I've done something stupid... > > * click on my MichaelAtOz label, there is a link to email me. > > Unless specifically shown otherwise above, my contribution is in the > Public Domain; to the extent possible under law, I have waived all > copyright and related or neighbouring rights to this work. Obviously > inclusion of works of previous authors is not included in the above. > > The TPP is no simple “trade agreement.” Fight it! > http://www.ourfairdeal.org/ time is running out! > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
C
Clemente
Thu, Dec 20, 2018 6:12 PM

I know with click-right, but my idea is to do it in an automatic way when
command line is used
Nop head is right, when output -o is used, only echo and warnings is shown

--
Sent from: http://forum.openscad.org/

I know with click-right, but my idea is to do it in an automatic way when command line is used Nop head is right, when output -o is used, only echo and warnings is shown -- Sent from: http://forum.openscad.org/
NH
nop head
Fri, Dec 21, 2018 9:16 AM

The statistics about edges and times, etc, are generated by the GUI code in
mainwin.cc
https://github.com/openscad/openscad/blob/master/src/mainwin.cc#L2055, so
simply don't exist in command line mode.

On Thu, 20 Dec 2018 at 18:12, Clemente rubiomanzano.clemente@gmail.com
wrote:

I know with click-right, but my idea is to do it in an automatic way when
command line is used
Nop head is right, when output -o is used, only echo and warnings is shown

--
Sent from: http://forum.openscad.org/


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

The statistics about edges and times, etc, are generated by the GUI code in mainwin.cc <https://github.com/openscad/openscad/blob/master/src/mainwin.cc#L2055>, so simply don't exist in command line mode. On Thu, 20 Dec 2018 at 18:12, Clemente <rubiomanzano.clemente@gmail.com> wrote: > I know with click-right, but my idea is to do it in an automatic way when > command line is used > Nop head is right, when output -o is used, only echo and warnings is shown > > > > > > > > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
M
MichaelAtOz
Sat, Dec 22, 2018 2:18 AM

Having that info would also be useful in the test suite too.
Certainly comparing such stats between releases would be handy.
I'll raise an issue on it.


Admin - email* me if you need anything, or if I've done something stupid...

  • click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

Sent from: http://forum.openscad.org/

Having that info would also be useful in the test suite too. Certainly comparing such stats between releases would be handy. I'll raise an issue on it. ----- Admin - email* me if you need anything, or if I've done something stupid... * click on my MichaelAtOz label, there is a link to email me. Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- Sent from: http://forum.openscad.org/
M
MichaelAtOz
Sat, Dec 22, 2018 3:44 AM

Issue raised https://github.com/openscad/openscad/issues/2639  .


Admin - email* me if you need anything, or if I've done something stupid...

  • click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

Sent from: http://forum.openscad.org/

Issue raised <https://github.com/openscad/openscad/issues/2639> . ----- Admin - email* me if you need anything, or if I've done something stupid... * click on my MichaelAtOz label, there is a link to email me. Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- Sent from: http://forum.openscad.org/