timevar.def 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* This file contains the definitions for timing variables used to -*- C -*-
  2. measure run-time performance of the compiler.
  3. Copyright (C) 2002, 2007, 2009-2015, 2018-2021 Free Software
  4. Foundation, Inc.
  5. Contributed by Akim Demaille <akim@freefriends.org>.
  6. This file is part of Bison, the GNU Compiler Compiler.
  7. This program is free software: you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation, either version 3 of the License, or
  10. (at your option) any later version.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License for more details.
  15. You should have received a copy of the GNU General Public License
  16. along with this program. If not, see <https://www.gnu.org/licenses/>. */
  17. /* This file contains timing variable definitions, used by timevar.h
  18. and timevar.c.
  19. Syntax:
  20. DEFTIMEVAR (id, name)
  21. where ID is the enum value used to identify the timing
  22. variable, and NAME is a character string describing its purpose. */
  23. /* The total execution time. */
  24. DEFTIMEVAR (tv_total , "total time")
  25. /* Time spent in the reader. */
  26. DEFTIMEVAR (tv_reader , "reader")
  27. DEFTIMEVAR (tv_scanning , "scanner")
  28. DEFTIMEVAR (tv_parsing , "parser")
  29. /* Time spent handling the grammar. */
  30. DEFTIMEVAR (tv_reduce , "reducing the grammar")
  31. DEFTIMEVAR (tv_sets , "computing the sets")
  32. DEFTIMEVAR (tv_lr0 , "LR(0)")
  33. DEFTIMEVAR (tv_lalr , "LALR(1)")
  34. DEFTIMEVAR (tv_ielr_phase1 , "IELR(1) Phase 1")
  35. DEFTIMEVAR (tv_ielr_phase2 , "IELR(1) Phase 2")
  36. DEFTIMEVAR (tv_ielr_phase3 , "IELR(1) Phase 3")
  37. DEFTIMEVAR (tv_ielr_phase4 , "IELR(1) Phase 4")
  38. DEFTIMEVAR (tv_conflicts , "conflicts")
  39. /* Time spent outputting results. */
  40. DEFTIMEVAR (tv_report , "outputting report")
  41. DEFTIMEVAR (tv_graph , "outputting graph")
  42. DEFTIMEVAR (tv_xml , "outputting xml")
  43. DEFTIMEVAR (tv_actions , "parser action tables")
  44. DEFTIMEVAR (tv_parser , "outputting parser")
  45. DEFTIMEVAR (tv_m4 , "running m4")
  46. /* Time spent by freeing the memory :). */
  47. DEFTIMEVAR (tv_free , "freeing")