설명 없음

source_html.go 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // Copyright 2014 Google Inc. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package report
  15. const weblistPageHeader = `
  16. <!DOCTYPE html>
  17. <html>
  18. <head>
  19. <title>Pprof listing</title>
  20. <style type="text/css">
  21. body {
  22. font-family: sans-serif;
  23. }
  24. h1 {
  25. font-size: 1.5em;
  26. margin-bottom: 4px;
  27. }
  28. .legend {
  29. font-size: 1.25em;
  30. }
  31. .line {
  32. color: #aaaaaa;
  33. }
  34. .nop {
  35. color: #aaaaaa;
  36. }
  37. .unimportant {
  38. color: #cccccc;
  39. }
  40. .disasmloc {
  41. color: #000000;
  42. }
  43. .deadsrc {
  44. cursor: pointer;
  45. }
  46. .deadsrc:hover {
  47. background-color: #eeeeee;
  48. }
  49. .livesrc {
  50. color: #0000ff;
  51. cursor: pointer;
  52. }
  53. .livesrc:hover {
  54. background-color: #eeeeee;
  55. }
  56. .asm {
  57. color: #008800;
  58. display: none;
  59. }
  60. </style>
  61. <script type="text/javascript">
  62. function pprof_toggle_asm(e) {
  63. var target;
  64. if (!e) e = window.event;
  65. if (e.target) target = e.target;
  66. else if (e.srcElement) target = e.srcElement;
  67. if (target) {
  68. var asm = target.nextSibling;
  69. if (asm && asm.className == "asm") {
  70. asm.style.display = (asm.style.display == "block" ? "" : "block");
  71. e.preventDefault();
  72. return false;
  73. }
  74. }
  75. }
  76. </script>
  77. </head>
  78. <body>
  79. `
  80. const weblistPageClosing = `
  81. </body>
  82. </html>
  83. `