[ 
https://issues.apache.org/jira/browse/TS-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157087#comment-15157087
 ] 

ASF GitHub Bot commented on TS-4212:
------------------------------------

Github user dragon512 commented on the pull request:

    https://github.com/apache/trafficserver/pull/489#issuecomment-187217377
  
    I am not sure why we are using C++ and not using new to do this? We want to 
track memory in Traffic server that is being used to alloc memory for OpenSSL ( 
ie not in OpenSSL as we would have to do fancier instrumentation to do this 
right). We can just overload new so we code do a 
    
    auto p = new(track::openssl) myobj;
    
    This would be more functional and maintainable for this attempt. 


> Add option to track memory allocation with OpenSSL
> --------------------------------------------------
>
>                 Key: TS-4212
>                 URL: https://issues.apache.org/jira/browse/TS-4212
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core, SSL
>            Reporter: Bryan Call
>             Fix For: 6.2.0
>
>
> For example:
> {code}
> [bcall@l1 ~]$ sudo traffic_line -s proxy.config.res_track_memory -v 2
> [bcall@l1 ~]$ sudo kill -sigusr1 $(pidof traffic_server); tail traffic.out
> Total Allocated      | Total Freed          | Currently Allocated  | Type
> ---------------------|----------------------|----------------------|----------------------
>          18437960662 |          17181254510 |           1256706152 | SSL 
> Allocated Memory
> ---------------------|----------------------|----------------------|----------------------
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to