暂无描述

source_html.go 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. <meta charset="UTF-8">
  20. <title>Pprof listing</title>
  21. <style type="text/css">
  22. body {
  23. font-family: sans-serif;
  24. }
  25. h1 {
  26. font-size: 1.5em;
  27. margin-bottom: 4px;
  28. }
  29. .legend {
  30. font-size: 1.25em;
  31. }
  32. .line {
  33. color: #aaaaaa;
  34. }
  35. .nop {
  36. color: #aaaaaa;
  37. }
  38. .unimportant {
  39. color: #cccccc;
  40. }
  41. .disasmloc {
  42. color: #000000;
  43. }
  44. .deadsrc {
  45. cursor: pointer;
  46. }
  47. .deadsrc:hover {
  48. background-color: #eeeeee;
  49. }
  50. .livesrc {
  51. color: #0000ff;
  52. cursor: pointer;
  53. }
  54. .livesrc:hover {
  55. background-color: #eeeeee;
  56. }
  57. .asm {
  58. color: #008800;
  59. display: none;
  60. }
  61. </style>
  62. <script type="text/javascript">
  63. function pprof_toggle_asm(e) {
  64. var target;
  65. if (!e) e = window.event;
  66. if (e.target) target = e.target;
  67. else if (e.srcElement) target = e.srcElement;
  68. if (target) {
  69. var asm = target.nextSibling;
  70. if (asm && asm.className == "asm") {
  71. asm.style.display = (asm.style.display == "block" ? "" : "block");
  72. e.preventDefault();
  73. return false;
  74. }
  75. }
  76. }
  77. </script>
  78. </head>
  79. <body>
  80. `
  81. const weblistPageClosing = `
  82. </body>
  83. </html>
  84. `