bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Profiling bug related to indirect function calls


From: Hermann Peifer
Subject: Profiling bug related to indirect function calls
Date: Fri, 11 Feb 2011 18:19:31 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7


Hi Arnold,

Here a small profiling issue.

Regards, Hermann


$ awk --profile '
  BEGIN { the_func = "p" ; print @the_func("Hello") }
  function p(str){ print "! " str " !" }'
! Hello !

$ awk -f ./awkprof.out
! p !

$ cat awkprof.out
        # gawk profile, created Fri Feb 11 18:16:00 2011

        # BEGIN block(s)

        BEGIN {
                the_func = "p"
                print @the_func(the_func)
        }

        # Functions, listed alphabetically

        function p(str)
        {
                print "! " str " !"
        }

$ awk --version | head -1
GNU Awk 3.1.80




reply via email to

[Prev in Thread] Current Thread [Next in Thread]