TPPPP72 wrote:

> ```
> --------------------------------------------------------------------------------
>   n        time(i)         total(B)   useful-heap(B) extra-heap(B)    
> stacks(B)
> --------------------------------------------------------------------------------
>   0              0                0                0             0            > 0
>   1    286,291,056        4,757,792        4,573,558       138,186       
> 46,048
>   2    591,222,234        8,392,712        8,064,059       267,949       
> 60,704
>   3    822,224,951       10,865,504       10,439,613       365,299       
> 60,592
> ```
> 
> It seems like we're taking significantly longer and using more heap space?

I think it might be random error because valgrind's snapshots appear to be 
randomly sampled
```
--------------------------------------------------------------------------------
Command:            ./llvm-project/llvm/build/bin/clang-new -c ./stress.cpp -O2
Massif arguments:   --stacks=yes --depth=20 --massif-out-file=massif.new
ms_print arguments: massif.new
--------------------------------------------------------------------------------


    MB
56.88^                        ##                                              
     |                      ::#                                               
     |                   @@:: #                                               
     |                  :@ :: # :                                             
     |                  :@ :: # :::                                           
     |                  :@ :: # ::                                            
     |              ::@@:@ :: # ::                                            
     |             @: @ :@ :: # ::                                            
     |            :@: @ :@ :: # ::                                           :
     |            :@: @ :@ :: # ::                                           :
     |         @@::@: @ :@ :: # ::                                    :@::::::
     |         @ ::@: @ :@ :: # ::                         ::::::::::::@: : ::
     |         @ ::@: @ :@ :: # ::             :::::::::::::: :: :: :::@: : ::
     |         @ ::@: @ :@ :: # ::   :@::::::::: :: :: :: ::: :: :: :::@: : ::
     |      :::@ ::@: @ :@ :: # :: @@:@: :::: :: :: :: :: ::: :: :: :::@: : ::
     |     ::: @ ::@: @ :@ :: # :: @ :@: :::: :: :: :: :: ::: :: :: :::@: : ::
     |     ::: @ ::@: @ :@ :: # :: @ :@: :::: :: :: :: :: ::: :: :: :::@: : ::
     |   @@::: @ ::@: @ :@ :: # :: @ :@: :::: :: :: :: :: ::: :: :: :::@: : ::
     |   @ ::: @ ::@: @ :@ :: # :: @ :@: :::: :: :: :: :: ::: :: :: :::@: : ::
     | @@@ ::: @ ::@: @ :@ :: # :: @ :@: :::: :: :: :: :: ::: :: :: :::@: : ::
   0 +----------------------------------------------------------------------->Gi
     0                                                                   14.41

Number of snapshots: 50
 Detailed snapshots: [1, 2, 6, 9, 11, 13, 16 (peak), 19, 21, 45]

--------------------------------------------------------------------------------
  n        time(i)         total(B)   useful-heap(B) extra-heap(B)    stacks(B)
--------------------------------------------------------------------------------
  0              0                0                0             0            0
  1    357,796,302        5,532,872        5,297,679       168,937       66,256
```



https://github.com/llvm/llvm-project/pull/192080
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to