@parca/profile 0.12.8 → 0.12.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.12.12](https://github.com/parca-dev/parca/compare/ui-v0.12.11...ui-v0.12.12) (2022-04-05)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  ## [0.12.8](https://github.com/parca-dev/parca/compare/ui-v0.12.7...ui-v0.12.8) (2022-03-30)
7
11
 
8
12
  **Note:** Version bump only for package @parca/profile
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.12.8",
3
+ "version": "0.12.12",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
- "@parca/client": "^0.12.6",
6
+ "@parca/client": "^0.12.12",
7
7
  "@parca/dynamicsize": "^0.12.0",
8
8
  "@parca/parser": "^0.12.3",
9
9
  "d3-scale": "^4.0.2"
@@ -19,5 +19,5 @@
19
19
  "access": "public",
20
20
  "registry": "https://registry.npmjs.org/"
21
21
  },
22
- "gitHead": "14acb288189bdc77077d992aa6c4e3736e6d07fa"
22
+ "gitHead": "b5a0b0202b805c2c030f5d242a5c34b7d977766e"
23
23
  }
package/src/TopTable.tsx CHANGED
@@ -189,6 +189,15 @@ export const TopTable = ({queryClient, profileSource}: ProfileViewProps): JSX.El
189
189
  <Arrow direction={getClassNamesFor('cumulative')} />
190
190
  </span>
191
191
  </th>
192
+ <th
193
+ className="text-right text-sm cursor-pointer pt-2 pb-2 pr-2"
194
+ onClick={() => requestSort('diff')}
195
+ >
196
+ Diff
197
+ <span className={`inline-block align-middle ml-2 ${getClassNamesFor('diff')}`}>
198
+ <Arrow direction={getClassNamesFor('diff')} />
199
+ </span>
200
+ </th>
192
201
  </tr>
193
202
  </thead>
194
203
  <tbody className="bg-white divide-y divide-gray-200 dark:bg-gray-900 dark:divide-gray-700">
@@ -197,12 +206,15 @@ export const TopTable = ({queryClient, profileSource}: ProfileViewProps): JSX.El
197
206
  <td className="text-xs py-1.5 pl-2 min-w-[150px] max-w-[450px]">
198
207
  {RowLabel(report.meta)}
199
208
  </td>
200
- <td className="text-xs min-w-[150px] max-w-[150px] py-1.5text-right">
209
+ <td className="text-xs min-w-[150px] max-w-[150px] py-1.5 text-right">
201
210
  {valueFormatter(report.flat, unit, 2)}
202
211
  </td>
203
212
  <td className="text-xs min-w-[150px] max-w-[150px] py-1.5 text-right pr-2">
204
213
  {valueFormatter(report.cumulative, unit, 2)}
205
214
  </td>
215
+ <td className="text-xs min-w-[150px] max-w-[150px] py-1.5 text-right pr-2">
216
+ {valueFormatter(report.diff, unit, 2)}
217
+ </td>
206
218
  </tr>
207
219
  ))}
208
220
  </tbody>