Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <meta charset="utf8">
  3. <title>dprof visualizer</title>
  4.  
  5. <style>
  6. /* general page layout */
  7. html, body {
  8. margin: 0;
  9. height: 100%;
  10. }
  11. body {
  12. display: flex;
  13. flex-direction: column;
  14. }
  15. section#info {
  16. flex: 0 0 119px;
  17. background: #F3F3F3;
  18. border-bottom: 1px solid #666;
  19. }
  20. div#content-box {
  21. flex-grow: 1;
  22. overflow-y: scroll;
  23. overflow-x: scroll;
  24. }
  25. svg {
  26. display: block;
  27. width: 100%;
  28. }
  29. svg#overview {
  30. flex: 0 0 69px;
  31. background: #F3F3F3;
  32. border-bottom: 1px solid #000;
  33. }
  34. svg#ticks {
  35. flex: 0 0 25px;
  36. }
  37. svg#content {
  38. box-sizing: border-box;
  39. height: 0px; /* default will be overwriten dynamically */
  40. }
  41.  
  42. /* info style */
  43. section#info {
  44. font-family: monospace;
  45. font-size: 8pt;
  46. }
  47. section#info #stacktrace {
  48. float: left;
  49. width: calc(100% - 155px);
  50. height: 119px;
  51. white-space: pre-wrap;
  52. padding: 10px 10px 5px 10px;
  53. box-sizing: border-box;
  54. overflow-y: auto;
  55. }
  56. section#info #stats {
  57. float: right;
  58. width: 155px;
  59. height: 119px;
  60. white-space: pre-wrap;
  61. padding: 10px 10px 5px 10px;
  62. box-sizing: border-box;
  63. }
  64.  
  65. /* overview style */
  66. svg#overview path {
  67. fill: SteelBlue;
  68. shape-rendering: crispEdges;
  69. }
  70.  
  71. svg#overview .brush {
  72. stroke: #fff;
  73. fill: #000;
  74. fill-opacity: .125;
  75. shape-rendering: crispEdges;
  76. }
  77.  
  78. svg#overview .brush rect {
  79. transform: translateY(-1px);
  80. }
  81.  
  82. /* chart style */
  83. .axis text {
  84. font: 10px sans-serif;
  85. }
  86.  
  87. .axis path,
  88. .axis line {
  89. fill: none;
  90. stroke: #000;
  91. shape-rendering: crispEdges;
  92. }
  93.  
  94. .timeline path {
  95. stroke-linejoin: miter;
  96. stroke-linecap: butt;
  97. shape-rendering: crispEdges;
  98. }
  99.  
  100. .timeline .background {
  101. stroke-width: 20px;
  102. }
  103. .timeline .background.odd {
  104. stroke: #F3F3F3;
  105. }
  106. .timeline .background.selected {
  107. stroke: #D0D0D0;
  108. }
  109.  
  110. .timeline .init {
  111. stroke-width: 2px;
  112. stroke: rgba(0, 0, 0, 0.7);
  113. }
  114. .timeline .before {
  115. stroke-width: 6px;
  116. stroke: SteelBlue;
  117. }
  118. .timeline .after {
  119. stroke-width: 12px;
  120. stroke: IndianRed;
  121. }
  122. .timeline .total {
  123. stroke-width: 6px;
  124. stroke: RebeccaPurple;
  125. }
  126. </style>
  127.  
  128. <section id="info">
  129. <div id="stacktrace"></div>
  130. <div id="stats"></div>
  131. </section>
  132. <svg id="overview"></svg>
  133. <svg id="ticks"></svg>
  134. <div id="content-box">
  135. <svg id="content"></svg>
  136. </div>
  137.  
  138.  
  139. <script src="visualizer.js" charset="utf8" defer></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement