Explorar el Código

added profile support

Mark VandenBrink hace 12 años
padre
commit
689286a9e8
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      profile.lisp

+ 10 - 1
profile.lisp

@@ -1,5 +1,14 @@
+;;; -*- Mode: Lisp;  show-trailing-whitespace: t; Base: 10; indent-tabs: nil; Syntax: ANSI-Common-Lisp; Package: CL-USER; -*-
+;;; Copyright (c) 2013, Mark VandenBrink. All rights reserved.
+
+;;;;;;;;;;;;;;;;;;;; Handy, dandy CCL profile functions ;;;;;;;;;;;;;;;;;;;;
+;;;
+;;; Usage: load and compile this file, then at REPL, type "profile-on".  After
+;;; running programs, type "profile-report" to get a profile listing.
+;;; "profile-reset" clears counters
+;;; "profil-off" turns of profiling
 (defun profile-on ()
-  (dolist (p '("MP4-ATOM" "MPEG" "AUDIO-STREAMS" "ID3-FRAME" "UTILS" "LOGGING" "ISO-639-2" "MP3-TAG" "MP4-TAG"))
+  (dolist (p '("MP4-ATOM" "MPEG" "AUDIO-STREAMS" "ID3-FRAME" "UTILS" "LOGGING" "ISO-639-2" "MP3-TAG" "MP4-TAG" "FLAC-FRAME"))
     (let ((pkg (find-package p)))
       (mon:monitor-all pkg)
       (format t "Package ~a, ~:d~%" pkg (length mon:*monitored-functions*)))))