<commit_before>#include "LinuxPerfData.h"
#include "SerializationMacros.h"
#include "Serialization.h"


void LinuxPerfData::Clear()
{
    m_CS.m_Data.clear();
    m_header = "";
    m_time = 0;
    m_tid = 0;
    m_numCallstacks = 0;
}

ORBIT_SERIALIZE( LinuxPerfData, 0 )
{
    ORBIT_NVP_VAL( 0, m_header );
    ORBIT_NVP_VAL( 0, m_tid );
    ORBIT_NVP_VAL( 0, m_time );
    ORBIT_NVP_VAL( 0, m_numCallstacks );
    ORBIT_NVP_VAL( 0, m_CS );
}<commit_msg>Clear callstack hash in LinuxPerfData.Clear() otherwise we end up assigning the same hash to all sampling events.<commit_after>#include "LinuxPerfData.h"
#include "SerializationMacros.h"
#include "Serialization.h"


void LinuxPerfData::Clear()
{
    m_CS.m_Data.clear();
    m_CS.m_Hash = 0;
    m_header = "";
    m_time = 0;
    m_tid = 0;
    m_numCallstacks = 0;
}

ORBIT_SERIALIZE( LinuxPerfData, 0 )
{
    ORBIT_NVP_VAL( 0, m_header );
    ORBIT_NVP_VAL( 0, m_tid );
    ORBIT_NVP_VAL( 0, m_time );
    ORBIT_NVP_VAL( 0, m_numCallstacks );
    ORBIT_NVP_VAL( 0, m_CS );
}
{'fraction_non_alphanumeric': 0.12487899322362052, 'fraction_numerical': 0.018393030009680542, 'mean_word_length': 3.721461187214612, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6582979', 'n_tokens_mistral': 460, 'n_tokens_neox': 436, 'n_words': 86}