Skip to content

Instantly share code, notes, and snippets.

@mvexel
Created September 5, 2012 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvexel/3641217 to your computer and use it in GitHub Desktop.
Save mvexel/3641217 to your computer and use it in GitHub Desktop.
valgrind shp2pgsql
mvexel@lima$ valgrind /usr/lib/postgresql/9.1/bin/shp2pgsql -c -D -I -i -s 4326 /osm/externaldata/census/tl_2012_us_states_dissolved.shp tl_2012_us_states_dissolved usboundary > /osm/tmp/us.sql
==5501== Memcheck, a memory error detector
==5501== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==5501== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==5501== Command: /usr/lib/postgresql/9.1/bin/shp2pgsql -c -D -I -i -s 4326 /osm/externaldata/census/tl_2012_us_states_dissolved.shp tl_2012_us_states_dissolved usboundary
==5501==
Shapefile type: Polygon
Postgis type: MULTIPOLYGON[2]
==5501==
==5501== HEAP SUMMARY:
==5501== in use at exit: 11 bytes in 2 blocks
==5501== total heap usage: 2,166 allocs, 2,164 frees, 20,452,509 bytes allocated
==5501==
==5501== LEAK SUMMARY:
==5501== definitely lost: 11 bytes in 2 blocks
==5501== indirectly lost: 0 bytes in 0 blocks
==5501== possibly lost: 0 bytes in 0 blocks
==5501== still reachable: 0 bytes in 0 blocks
==5501== suppressed: 0 bytes in 0 blocks
==5501== Rerun with --leak-check=full to see details of leaked memory
==5501==
==5501== For counts of detected and suppressed errors, rerun with: -v
==5501== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment