3 * Copyright (c) 1991-1994, Larry Wall
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
14 * "Away now, Shadowfax! Run, greatheart, run as you have never run before!
15 * Now we are come to the lands where you were foaled, and every stone you
16 * know. Run now! Hope is in speed!" --Gandalf
19 dEXT char **watchaddr = 0;
29 while ( op = (*op->op_ppaddr)() ) ;
35 static void debprof _((OP*op));
40 warn("NULL OP IN RUN");
49 if (watchaddr != 0 && *watchaddr != watchok)
50 fprintf(stderr, "WARNING: %lx changed from %lx to %lx\n",
51 (long)watchaddr, (long)watchok, (long)*watchaddr);
56 } while ( op = (*op->op_ppaddr)() );
65 deb("%s", op_name[op->op_type]);
66 switch (op->op_type) {
68 fprintf(stderr, "(%s)", SvPEEK(cSVOP->op_sv));
74 gv_fullname(sv, cGVOP->op_gv);
75 fprintf(stderr, "(%s)", SvPV(sv, na));
79 fprintf(stderr, "(NULL)");
84 fprintf(stderr, "\n");
94 fprintf(stderr, "WATCHING, %lx is currently %lx\n",
95 (long)watchaddr, (long)watchok);
103 New(000, profiledata, MAXO, U32);
104 ++profiledata[op->op_type];
113 for (i = 0; i < MAXO; i++) {
115 fprintf(stderr, "%d\t%lu\n", i, profiledata[i]);