Created
June 19, 2014 04:19
-
-
Save sdstrowes/2c1ca212265844716b56 to your computer and use it in GitHub Desktop.
valgrind on awk in seconds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sds@uist:/tmp$ valgrind --tool=massif --pages-as-heap=yes --massif-out-file=massif.out --time-unit=ms awk '!x[$0]++' blah.txt > /tmp/foo | |
==2429== Massif, a heap profiler | |
==2429== Copyright (C) 2003-2012, and GNU GPL'd, by Nicholas Nethercote | |
==2429== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info | |
==2429== Command: awk !x[$0]++ blah.txt | |
==2429== | |
==2429== | |
sds@uist:/tmp$ ms_print massif.out | head -30 | |
-------------------------------------------------------------------------------- | |
Command: awk !x[$0]++ blah.txt | |
Massif arguments: --pages-as-heap=yes --massif-out-file=massif.out --time-unit=ms | |
ms_print arguments: massif.out | |
-------------------------------------------------------------------------------- | |
MB | |
54.26^ ::::::::::::::::::::::: | |
| ::: | |
| ::@::: # | |
| :::::@::: # | |
| :::: ::@::: # | |
| @:::::: ::@::: # | |
| :::@:::::: ::@::: # | |
| :::::@:::::: ::@::: # | |
| :::::::@:::::: ::@::: # | |
| ::@:::::::@:::::: ::@::: # | |
| ::@::@:::::::@:::::: ::@::: # | |
| ::::@::@:::::::@:::::: ::@::: # | |
| @:::::@::@:::::::@:::::: ::@::: # | |
| :@@@:::::@::@:::::::@:::::: ::@::: # | |
| :::::@@@@:::::@::@:::::::@:::::: ::@::: # | |
| : : ::@@@@:::::@::@:::::::@:::::: ::@::: # | |
| ::::::@: ::@@@@:::::@::@:::::::@:::::: ::@::: # | |
| @@: :@: ::@@@@:::::@::@:::::::@:::::: ::@::: # | |
| @ : :@: ::@@@@:::::@::@:::::::@:::::: ::@::: # | |
| @ : :@: ::@@@@:::::@::@:::::::@:::::: ::@::: # | |
0 +----------------------------------------------------------------------->s | |
0 3.366 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment